我正在尝试使用shell执行程序使用gitlab-runner提取代码。
$ git pull origin master
error: cannot open .git/FETCH_HEAD: Permission denied
ERROR: Job failed: exit status 1
git状态似乎正常,但是当我尝试git fetch
$ git fetch
error: cannot open .git/FETCH_HEAD: Permission denied
ERROR: Job failed: exit status 1
答案 0 :(得分:0)
更改权限很有帮助!
sudo chown -R .git /