hyg_123 2017-01-18 06:35 采纳率: 33.3%
浏览 2062

gitolite git push (testing 测试)

你好,我自己搭建的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$
请问这是什么问题呀?

  • 写回答

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 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题