Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/312.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
推送gitlab时出现符号链接问题_Git_Push_Symlink_Gitlab - Fatal编程技术网

推送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。