1

推动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

我认为这可能来自符号链接问题。因为,我在里面有updateandpost-receive文件/Users/home/repositories/root/other.git,当我删除它们并符号链接到/Users/home/gitlab-shell/hooks/updateand/Users/home/gitlab-shell/hooks/post-receive时,当我再次运行 push 时,我有同样的错误,update并且post-receive文件再次出现在/Users/home/repositories/root/other.git. 有人可以帮忙吗?

4

0 回答 0