gitosis-admin git推送失败,exec钩子/更新后 [英] gitosis-admin git push failed, exec hooks/post-update
问题描述
我正在关注 本教程
完成此步骤后:
$ git commit -a -m允许jdoe写入free_monkey
$ git push
我总是失败,出现此错误:
致命:exec hooks / post-update failed。
这是从我的 / home / git / repositories / gitosis-admin / hooks / post-update
:
-rwxr-xr-x 1 git git 83 Mar 10 11 :49后更新
因此,我更改 gitosis.conf
手动从服务器添加新的存储库,并且回购可以正常工作。
我已经用Google搜索了什么可能导致它,我想以正确的方式管理gitosis。
请帮助
问候,
REV
检查相关的权限与您的回购gitosis,尤其是 .git / refs
检查< ; git> / bin / git-update-server-info
是可执行文件
(你可以尝试 - 作为一个测试 - 通过指向 git-update-server-info
的链接替换 update-hook
,如本案)。
或者 here here ,检查你是否需要在你的 gitosis / templates / admin / hooks / post-更新
:
git-update-server-info
with
git update-server-info
I'm following this tutorial
After this step:
$ git commit -a -m "Allow jdoe write access to free_monkey"
$ git push
I always failed, with this error:
fatal: exec hooks/post-update failed.
This is from my /home/git/repositories/gitosis-admin/hooks/post-update
:
-rwxr-xr-x 1 git git 83 Mar 10 11:49 post-update
So I change gitosis.conf
manually from server for adding new repositories, and repos can work fine.
I've googled what might cause it, I want to admin gitosis in proper way.
Please Help
Regards, REV
Your post-update hook can be executed, but it cannot update the pointers in refs/heads/
and refs/remotes/
(which help when cloning with a "dumb" protocol, i.e. over http)
Check the rights associated with your repo on gitosis, especially under .git/refs
Check also if <git>/bin/git-update-server-info
is executable
(you can try -- as a test -- to replace your update-hook
by a link to git-update-server-info
, like this case).
Or, as described here, check if you need to replace in your gitosis/templates/admin/hooks/post-update
:
git-update-server-info
with
git update-server-info
这篇关于gitosis-admin git推送失败,exec钩子/更新后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!