推动gitlab project repo
. 当我跑到git push -u origin master
一个远程仓库/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
我认为这可能来自符号链接问题。因为,我在里面有update
andpost-receive
文件/Users/home/repositories/root/other.git
,当我删除它们并符号链接到/Users/home/gitlab-shell/hooks/update
and/Users/home/gitlab-shell/hooks/post-receive
时,当我再次运行 push 时,我有同样的错误,update
并且post-receive
文件再次出现在/Users/home/repositories/root/other.git
. 有人可以帮忙吗?