作者热门文章
- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我有一个带有 Git 和 Gitolite 的 Linux 服务器。直到现在,总是工作正常,但从昨天开始我遇到了问题。我可以连接并 pull 我的存储库,但是当我推送时,我遇到了这些类型的错误:
remote: Empty compile time value given to use lib at hooks/update line 6
remote: Use of uninitialized value in require at hooks/update line 7.
remote: Can't locate Gitolite/Hooks/Update.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at hooks/update line 7.
remote: BEGIN failed--compilation aborted at hooks/update line 7.
remote: error: hook declined to update refs/heads/master
To git@myhost.com:/home/git/repositories/gitolite-admin.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'git@myhost.com:/home/git/repositories/gitolite-admin.git'
我迷路了...你能帮帮我吗?谢谢
最佳答案
“Empty compile time value”是典型的绕过 gitolite 的 url。
你用过:
git@myhost.com:/home/git/repositories/gitolite-admin.git
但你应该使用:
git@myhost.com:gitolite-admin
有关更多信息,请参阅“git, gitolite error push”。
关于linux - 推送到服务器时的 Gitolite 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16820687/
我是一名优秀的程序员,十分优秀!