在正确(我希望)安装gitolite之后,我将gitolite-admin存储库克隆到我的本地电脑上。不幸的是,当我尝试将更改推送到服务器时,我收到以下错误:
[me@PC gitolite-admin]$ git push origin master
Counting objects: 7, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 349 bytes, done.
Total 4 (delta 1), reused 0 (delta 0)
remote: Directory /var/lib/gitolite not allowed in require at /usr/lib/perl5/vendor_perl/5.8.8/gitolite_rc.pm line 42.
remote: Compilation failed in require at hooks/update line 23.
remote: BEGIN failed--compilation aborted at hooks/update line 23.
remote: error: hook declined to update refs/heads/master
To my.server:/var/git/repos/gitolite-admin.git
![remote rejected] master -> master (hook declined)
error: failed to push some refs to my.server:/var/git/repos/gitolite-admin.git
有谁知道这个问题的原因是什么? 提前感谢您的帮助。
·彼得
答案 0 :(得分:0)
如评论所述,安装Gitolite V3 or g3可以避免更新钩子中的Gitolite g2错误。
在Gitolite g3中,它仍保留update
挂钩,但提供 VREFS ,允许您在回购中写入所有其他“更新”挂钩。< / p>