当我使用 gitolite 时,忽略git-daemon
,我可以这样做git clone git://xxx/xxx
,但是当我推送项目时,它向我显示错误:
Total 2 (delta 0), reused 0 (delta 0)
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 git://www.54cxy.com/qianfuzi
! [remote rejected] master -> master (hook declined)
但是,当我使用ssh
like git@xxx:xxx.git
it working时,不仅可以克隆,还可以推送,但是我想使用git://
克隆和推送,那么我该怎么做才能让它工作呢?