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
You can use the environment variable $GIT_DIR. $GIT_DIR points at the .git directory.
$GIT_DIR
.git