Note that the git-hooks in the .git/hooks folder are not committed with git! Also, when running the hooks, it runs with the current directory set to the root of the repository.