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.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/20024

Merge request reports

Loading
Loading