I have a local git repository, created with:
git clone --mirror git://github.com/<user>/<project>.git
Occasionally changes will get pushed to github, and this machine will pull them with:
git remote update --prune
This all works fine, but after the update, I want to run a hook, and I'm not sure which to run. I have tried "post-receive" and "post-merge", but neither seems to execute after the update. In both cases, the contents of the hook file are:
#!/bin/sh
echo foo > foo.log
When I run them from the command-line via bash.exe (yes, on Windows), a foo.log file is created, so that works. But nothing happens as a result of the "git remote update". Between each "git remote update" I am pushing a useless change to make sure there's something to pull.