Search code examples
hookgitosisgithooks

Gitosis / Git does not execute post-commit hook


I just set up Trac and Gitosis and wanted to control the ticket workflow with the commit messages. Unfortunately my post-commit hook is not executed. If I execute it on command line (as gitosis user) everything is like charm.

My post-commit is rather simple:

#!/bin/sh
touch /tmp/commited
echo 'Cant touch this!'

Any suggestions on that?

Thanks in advance & cheers Martin


Solution

  • The OP realized in the comment there was a difference between;

    See Pro Git book for more.