在 OE BitBake 中获取失败
Fetch failed in OE BitBake
BitBake 在内部使用以下 git 命令来获取:
$ git -c core.fsyncobjectfiles=0 clone --bare --mirror git://github.com/google/leveldb.git
Error Log:
$<50>ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
Cloning into bare repository '/home/rajeshgopu/github.com.google.leveldb.git'...
fatal: Project not found: github.com/google/leveldb
fatal: Could not read from remote repository.
如果我手动尝试相同的命令,它会失败。我在下面对其进行了编辑然后它起作用了:
git -c core.fsyncobjectfiles=0 clone --bare --mirror git@github.com:google/leveldb.git
如何在 .gitconfig
中配置它而不是在所有项目中手动更改它?
我尝试了以下但得到了同样的错误:
[url "git@github.com:"]
insteadOf = git://github.com
在 ~/.gitconfig
中添加以下内容后有效
[url "https://github.com"]
insteadOf = git://github.com
BitBake 在内部使用以下 git 命令来获取:
$ git -c core.fsyncobjectfiles=0 clone --bare --mirror git://github.com/google/leveldb.git
Error Log:
$<50>ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
Cloning into bare repository '/home/rajeshgopu/github.com.google.leveldb.git'...
fatal: Project not found: github.com/google/leveldb
fatal: Could not read from remote repository.
如果我手动尝试相同的命令,它会失败。我在下面对其进行了编辑然后它起作用了:
git -c core.fsyncobjectfiles=0 clone --bare --mirror git@github.com:google/leveldb.git
如何在 .gitconfig
中配置它而不是在所有项目中手动更改它?
我尝试了以下但得到了同样的错误:
[url "git@github.com:"]
insteadOf = git://github.com
在 ~/.gitconfig
中添加以下内容后有效[url "https://github.com"]
insteadOf = git://github.com