I ran into the same problem. In post-receive hook
we have the following:
echo "Updating pages" unset GIT_DIR GIT_WORK_TREE ( cd /path/to/staging/tree ; git pull ; ) echo "Update completed"
If Git sees one of these environment variables when you point it to pull , it will be confused and will not look in the current directory.
source share