首页 » LINUX » git clone gitlab项目的时候报fatal: unable to access 'http://xxx.com/root/maoyi.git/': The requested URL returned error: 500

git clone gitlab项目的时候报fatal: unable to access 'http://xxx.com/root/maoyi.git/': The requested URL returned error: 500

 

解决方法,查看gitlab目录的 log/production.log报的错

Started GET "/root/maoyi.git/info/refs?service=git-upload-pack" for 127.0.0.1 at 2015-06-27 14:47:04 +0800

Errno::ENOENT (No such file or directory - /usr/bin/git):
lib/gitlab/backend/grack_auth.rb:29:in `call'

解决办法是: ln -s /usr/local/bin/git /usr/bin/git

在次clone ok

原文链接:git clone gitlab项目的时候报fatal: unable to access 'http://xxx.com/root/maoyi.git/': The requested URL returned error: 500,转载请注明来源!

3