From ab2d075658660d45ad1ebe0a286b0dc6b3d220b2 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 5 Aug 2021 16:11:11 +0200 Subject: fix set git to clone in gitolite hook --- lib/gitolite3/hooks/common/post-receive | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/gitolite3/hooks/common/post-receive') diff --git a/lib/gitolite3/hooks/common/post-receive b/lib/gitolite3/hooks/common/post-receive index 4a869f3..9731280 100755 --- a/lib/gitolite3/hooks/common/post-receive +++ b/lib/gitolite3/hooks/common/post-receive @@ -28,7 +28,7 @@ if [ -e "$GIT_WORK_TREE" ]; then git checkout -f "$WEB_BRANCH" chmod -R u=rw,go=r,a+X "$GIT_WORK_TREE" else - git clone --quiet --branch "$WEB_BRANCH" + git clone --quiet --branch "$WEB_BRANCH" . chmod -R u=rw,go=r,a+X "$GIT_WORK_TREE" if [ -n "$WEB_EXEC_INIT" ]; then ( cd "$WEB_BASEDIR" && echo "$WEB_EXEC_INIT" | sh - ) -- cgit v1.2.3