My git hook does not seem to be working. Namely a commit-msg
hook from gerrit.
The commit-msg
hook exist in <repo>/.git/hooks/
and has proper syntax.
Make sure your hook files are executable. If you use i.e. curl
to download hooks, make sure you chmod +x
them.
$ pwd
<repo>/.git/hooks
$ chmod +x commit-msg
If you use scp
to get your hooks, the flag -p
might set proper modes for you.