level 1
厚川崇之ed
楼主
最近在centos安装了git服务器,git clone 没有问题,但是在客户端不能git push提示:提示如下:
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: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) 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 [email protected]:repositories/myrepo.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to '[email protected]:repositories/myrepo.git',在百度没有找到解决的方法,跟这个帖子huoyingdk.blog.51cto.com/3932829/1172004遇到一样的问题,安装也是这样安装的,查了了好多,找不到解决办法,请各位了,搞了一个多星期也没有弄出来,只能在这里求教各位,多谢老师和前辈们的指导。
在服务器上用用git clone [email protected]:myrepo.git,这个地址没有问题,在客户端,必须输入git [email protected]:repositories/myrepo.git才能完成,但是出现git push就出问题了,也不知道什么原因了,求前辈们指点了,谢谢!
2016年08月13日 13点08分
1
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: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) 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 [email protected]:repositories/myrepo.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to '[email protected]:repositories/myrepo.git',在百度没有找到解决的方法,跟这个帖子huoyingdk.blog.51cto.com/3932829/1172004遇到一样的问题,安装也是这样安装的,查了了好多,找不到解决办法,请各位了,搞了一个多星期也没有弄出来,只能在这里求教各位,多谢老师和前辈们的指导。
在服务器上用用git clone [email protected]:myrepo.git,这个地址没有问题,在客户端,必须输入git [email protected]:repositories/myrepo.git才能完成,但是出现git push就出问题了,也不知道什么原因了,求前辈们指点了,谢谢!