summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2021-08-05 16:52:35 +0200
committerJonas Smedegaard <dr@jones.dk>2021-08-05 16:52:35 +0200
commit9508272d616b8bf341f208a3857cd033794e9f14 (patch)
tree988dadc024dab6bdf52939b6d6927cd1dba58043 /lib
parentf88f5a6faceaee1d7fb1e55fd49eed2e88f33728 (diff)
fix unset GIT_DIR in gitolite hook
Diffstat (limited to 'lib')
-rwxr-xr-xlib/gitolite3/hooks/common/post-receive1
1 files changed, 1 insertions, 0 deletions
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 ..."