From 9508272d616b8bf341f208a3857cd033794e9f14 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 5 Aug 2021 16:52:35 +0200 Subject: fix unset GIT_DIR in gitolite hook --- lib/gitolite3/hooks/common/post-receive | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/gitolite3/hooks/common/post-receive b/lib/gitolite3/hooks/common/post-receive index a5f9ab6..6546a38 100755 --- a/lib/gitolite3/hooks/common/post-receive +++ b/lib/gitolite3/hooks/common/post-receive @@ -18,6 +18,7 @@ WEB_EXEC_INIT=${GL_OPTION_WEB_EXEC_INIT:-} WEB_BASEDIR=${GL_OPTION_WEB_BASEDIR:-/var/www/gitolite3} GIT_WORK_TREE="$WEB_BASEDIR/$GL_REPO" +unset GIT_DIR if [ -e "$GIT_WORK_TREE" ]; then echo "Refreshing content in $GIT_WORK_TREE ..." -- cgit v1.2.3