【问题标题】:Fetch failed in OE BitBake在 OE BitBake 中获取失败
【发布时间】:2017-03-02 10:35:45
【问题描述】:

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

【问题讨论】:

    标签: git github bitbake openembedded


    【解决方案1】:

    在 ~/.gitconfig 中添加以下内容后它工作了

    [url "https://github.com"]
             insteadOf = git://github.com
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-08-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多