summaryrefslogtreecommitdiff
path: root/lib/gitolite3
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2021-08-05 16:11:11 +0200
committerJonas Smedegaard <dr@jones.dk>2021-08-05 16:11:11 +0200
commitab2d075658660d45ad1ebe0a286b0dc6b3d220b2 (patch)
treef540f2c4ecf069b40bcf5a8d9d0bc697486fb730 /lib/gitolite3
parentbcc7ede92b4a83a47cc6355c1c46fd31840d912c (diff)
fix set git to clone in gitolite hook
Diffstat (limited to 'lib/gitolite3')
-rwxr-xr-xlib/gitolite3/hooks/common/post-receive2
1 files changed, 1 insertions, 1 deletions
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 - )