开发者

gitosis-admin git push failed, exec hooks/post-update

开发者 https://www.devze.com 2022-12-22 22:17 出处:网络
I\'m following this tutorial After this step: $ git commit -a -m \"Allow jdoe write access to free_monkey\"

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 /ho开发者_如何学运维me/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
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号