Gitosis post-update wont run

Posted by Andy on Stack Overflow See other posts from Stack Overflow or by Andy
Published on 2010-04-14T12:57:42Z Indexed on 2010/04/14 19:33 UTC
Read the original article Hit count: 813

Filed under:
|

Im running cygwin on a windows vista pc. Ive successfully installed sshd, configured, and built gitosis. I can remotely git clone the gitosis-admin.git repository, made a change to the config, committed and pushed back to cygwin machine successfully.

However the post-update doesnt execute and the new repository (as specified in the config) have not created.

I have run:

chmod 755 /home/git/repositories/gitosis-admin.git/hooks/post-update

and an ls -l shows the following:

-rwxr-xr-x 1 git None   69 2010-04-13 22:55 post-update

yet, when I run:

./post-update

I receive the following error:

ERROR:gitosis.run_hook:Must have GIT_DIR set in enviroment

Ive included in my git .bashrc the line:

GIT_DIR=$HOME/repositories/gitosis-admin.git/

and if I type Set at the prompt, I can see:

GIT_DIR=/home/git/repositories/gitosis-admin.git/

What else can I try, because Im running out of ideas.

© Stack Overflow or respective owner

Related posts about git

Related posts about gitosis