diff options
author | Jonas Smedegaard <dr@jones.dk> | 2021-08-05 16:11:11 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2021-08-05 16:11:11 +0200 |
commit | ab2d075658660d45ad1ebe0a286b0dc6b3d220b2 (patch) | |
tree | f540f2c4ecf069b40bcf5a8d9d0bc697486fb730 | |
parent | bcc7ede92b4a83a47cc6355c1c46fd31840d912c (diff) |
fix set git to clone in gitolite hook
-rwxr-xr-x | lib/gitolite3/hooks/common/post-receive | 2 |
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 - ) |