I have a central git repo set up using gitolite.
I want to set up a hook such that whenever a user pushes to the repo, it performs a pull elsewhere followed by some
How about specifying the --git-dir.
--git-dir
#!/bin/sh cd /home/git/www/epicac git --git-dir=.git pull