hooks/post-receive
#!/bin/sh
cd /path/to/dir
git pull origin master
touch tmp/restart.txt
更新されない
hooks/post-receive
#!/bin/sh
cd /path/to/dir
git --git-dir=.git pull origin master
touch tmp/restart.txt
更新された
参考
http://stackoverflow.com/questions/19242401/git-hook-post-receive-with-git-pull-runs-well-via-command-line-but-returns-e
http://nullnote.com/web/git/git-auto-pull/