gitlab-runner构建报错fatal: git fetch-pack: expected shallow listfatal: The remote end hung up unexpect
比如,我的服务器系统是Centos7,一开始使用的自带git版本是1.8.3.1的,就是版本太低的问题,不支持最新的API。(2)安装/更新git。
·
一、问题描述
在centos7上搭建gitlab-runner后,第一次自动构建项目成功,第二次后构建项目报错,如下:
Reinitialized existing Git repository in /home/gitlab-runner/builds/zBFPsthA/0/root/react-demo/.git/
fatal: git fetch-pack: expected shallow list
fatal: The remote end hung up unexpectedly
二、解决方案
1、查看git版本
git --version
比如,我的服务器系统是Centos7,一开始使用的自带git版本是1.8.3.1的,就是版本太低的问题,不支持最新的API。
2、升级git
(1)安装源
yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm
(2)安装/更新git
#安装git
yum install git
#更新git
更多推荐
已为社区贡献1条内容
所有评论(0)