推送gitlab时出现符号链接问题
我在推进推送gitlab时出现符号链接问题,git,push,symlink,gitlab,Git,Push,Symlink,Gitlab,我在推进gitlab项目repo时遇到了一些问题。当我运行git push-u origin master到远程repo/Users/home/repositories/root/other.git时,我得到以下输出: remote: hooks/update:10: undefined method `require_relative' for main:Object (NoMethodError) remote: error: hook declined to update refs/hea
gitlab项目repo
时遇到了一些问题。当我运行git push-u origin master
到远程repo/Users/home/repositories/root/other.git
时,我得到以下输出:
remote: hooks/update:10: undefined method `require_relative' for main:Object (NoMethodError)
remote: error: hook declined to update refs/heads/master
我认为这可能来自于符号链接问题。因为,我在
/Users/home/repositories/root/other.git
中有update
和post-receive
文件,当我删除它们并符号链接到/Users/home/gitlab-shell/hooks/update
和/Users/home/gitlab-shell/hooks/post-receive
时,当我再次运行push时,我有同样的错误,update
和post-receive
文件再次出现在/Users/home/repositories/root/other.git下。有人能帮忙吗?您使用的是什么git版本?您是否直接推动GitLab服务器?(如)@VonC,不,我在本地使用它。如果我运行ruby-v
,我会得到ruby 2.0.0
!您在服务器上安装了什么gitlab版本?@VonC这是分支5-0-stable
the~git/.ssh/authorized_keys
将首先调用gitlab shell
检查您是否获得授权。然后GitLab调用git。