Closed stravid closed 9 years ago
Didn´t use it for a while but I had issues too when I started using it again. I can´t remember how I fixed it right now but I can take a look at it tomorrow and post my solution.
It took me some time but I found my former issue. Looks like I updated/re-installed git a while ago and the old 'templates' directory is no longer used (in my case: /usr/local/git/share/git-core/templates/
). Using which git
I realized that the version from /usr/bin/git
is used instead of /usr/local/git/bin/git
. So I just moved my post-commit hook into the new 'templates/hooks' directory. After re-initializing every git repo (git init
) everything worked as expected.
For me /Library/Developer/CommandLineTools/usr/share/git-core/templates/hooks
is working!
Everybody has to update their hook :-(
Btw. the install instructions did not work for me anymore, the linked
post-commit
file was not present in an example repository after runninggit init
. Does this still work for you, @tombu ?