赞
踩
报错
fatal: git fetch-pack: expected shallow list
fatal: The remote end hung up unexpectedly
ERROR: Job failed: exit status 1
Fetching changes with git depth set to 20...
Initialized empty Git repository in /home/gitlab-runner/builds/8MxUksyb/0/gitlab-instance-f410c318/gitlab-ci-k8s-demo/.git/
Created fresh repository.
git: 'remote-http' is not a git command. See 'git --help'.
ERROR: Job failed: exit status 1
因为没有外部网络,看了一下rpm包安装依赖太多了,最后决定二进制安装。
选择需要的版本
https://mirrors.edge.kernel.org/pub/software/scm/git/
make prefix=/usr/local/git all
make prefix=/usr/local/git install
vim /etc/profile
export GIT_HOME=/usr/local/git
export PATH=$GIT_HOME/bin:$PATH
source /etc/profile
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。