Experimentally it seems that git hooks get run with the current directory set to be the root of the repository. However, I can\'t see any guarantee about that in the git doc
It is based on the value set for environment variable GIT_DIR. It is set to the root of the repository when the hook starts running. Many hooks, especially those doing a pull from another repo, unset ( and reset) this environment variable as needed.