Skip to content

Add GIT_DIR to hook environment

Stan Hu requested to merge sh-add-git-dir-env into master

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