summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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 ..."