美文网首页
gitlab CI 失败一次后 fatal: git fetch

gitlab CI 失败一次后 fatal: git fetch

作者: 0neBean | 来源:发表于2019-09-27 09:45 被阅读0次

    gitlab CI 失败一次后,出现 fatal: git fetch-pack: expected shallow list 的错误:

    重新初始化现存的 Git 版本库于 /home/gitlab-runner/builds/yygZdKcz/0/root/api-adapter/.git/
    fatal: git fetch-pack: expected shallow list
    fatal: The remote end hung up unexpectedly
    

    原因是git版本太老不持之新API,需要升级一下git:

    #安装源
    yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm
    #安装git
    yum install git
    #更新git
    yum update git
    

    相关文章

      网友评论

          本文标题:gitlab CI 失败一次后 fatal: git fetch

          本文链接:https://www.haomeiwen.com/subject/ezfguctx.html