Add GIT_DIR to hook environment
Git documents GIT_DIR as an available environment variable in https://git-scm.com/docs/githooks, and hooks written with this assumption will fail under Gitaly.
Git documents GIT_DIR as an available environment variable in https://git-scm.com/docs/githooks, and hooks written with this assumption will fail under Gitaly.