我在Gitlab上安装了珍珠岩,整个网站运行得很好,它创造了很好的回放.
但是,当我试图从dev机器上推送一些代码时,它会引发一个错误.
git init
git remote add origin ssh://git@gitbox.com:10000/test_of_mine.git
git add .
git commit -m "first commit"
git push origin master 产出:
fatal: '/test_of_mine.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly当我绕过海泡石,添加一个带有全路径的遥控器时,它就会发现因为绕过而导致的回购,但是有另一个错误。
git remote add origin ssh://git@gitbox.com:10000/~git/repositories/test_of_mine.git回传
Delta compression using up to 4 threads.
Compressing objects: 100% (329/329), done.
Writing objects: 100% (667/667), 785.81 KiB, done.
Total 667 (delta 327), reused 639 (delta 311)
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 ssh://git@gitbox.com:10000/~git/repositories/test_of_mine.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://git@gitbox.com:10000/~git/repositories/test_of_mine.git' 我为什么要犯这个错误?我错过了任何路径配置吗?
如何配置海泡石回购路径,我不需要绕过海泡石?
为什么gitlab应用程序运行良好,在正确的路径上创建存储库,而不会引发任何错误?
发布于 2013-04-03 15:18:56
对于GitLab4.2,第2950期也提到了同样的错误(请注意,GitLab 5.0不再使用GitLab)。
尝试升级到最新的GitLab (使用gitlab-shell而不是gitolite)。
或者至少要再次检查/home/git/repositories/中是否存在a。
在当前的设置中,您不应该试图绕过珍珠岩,但是在第1495期中也可以看到第二条消息
之所以会发生这种情况,是因为
$ENV{GL_LIBDIR}没有设置,而且是~/.gitolite/hooks/common/update所需要的。
海泡石的安装一定是不完整的。另外,确保你的珍珠岩是V3.x,而不是V2。
https://stackoverflow.com/questions/15765625
复制相似问题