你好,我自己搭建的git服务器,刚开始没用gitolite这个工具,现在我按照你说的步骤把这个装上了,但是测试的时候一直出问题,执行git push出问题(测试时用的 repositories文件夹下的testing.git):
hyg@u-server:~/workspace$ git push origin master
git@gitserver's password:
Counting objects: 152, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (111/111), done.
Writing objects: 100% (152/152), 13.82 KiB | 0 bytes/s, done.
Total 152 (delta 36), 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 (you may need to install the Gitolite::Hooks::Update module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /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@gitServer:/home/git/repositories/testing
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'git@gitServer:/home/git/repositories/testing'
hyg@u-server:~/workspace$
请问这是什么问题呀?
gitolite git push (testing 测试)
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- hjhjw1991 2017-01-19 11:54关注
看起来好像说是没有在你的路径中找到Gitolite/Hooks/Update.pm 这个文件, 这个文件是在更新的时候由git自动调用的hook脚本. 也许是你安装了gitolite之后它配置了这个hook但是没有对应的hook脚本(you may need to install the Gitolite::Hooks::Update module 提示需要安装对应模块), 也许是该脚本访问权限有问题, 不能访问或不能运行. 具体原因需要你在服务器那边看日志和找对应文件来核对.
解决 无用评论 打赏 举报
悬赏问题
- ¥15 多电路系统共用电源的串扰问题
- ¥15 slam rangenet++配置
- ¥15 有没有研究水声通信方面的帮我改俩matlab代码
- ¥15 对于相关问题的求解与代码
- ¥15 ubuntu子系统密码忘记
- ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
- ¥15 保护模式-系统加载-段寄存器
- ¥15 电脑桌面设定一个区域禁止鼠标操作
- ¥15 求NPF226060磁芯的详细资料
- ¥15 使用R语言marginaleffects包进行边际效应图绘制