推送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
内有post-receive
和/Users/home/repositories/root/other.git
个文件,当我删除它们并将符号链接到/Users/home/gitlab-shell/hooks/update
和/Users/home/gitlab-shell/hooks/post-receive
时,当我再次运行时,我有同样的错误,update
和post-receive
文件会再次显示在/Users/home/repositories/root/other.git
下。有人可以帮忙吗?