[X2Go-Commits] [maintenancescripts] 03/03: git/misc/setup-repository: use our new git hooks, use symlinks, add common.sh and don't deny non-fast forwards by default.

git-admin at x2go.org git-admin at x2go.org
Mon Mar 9 01:54:00 CET 2015


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository maintenancescripts.

commit 7d1ae0ddf3408d4bd9c3a243e5de0230bbf2f017
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Mon Mar 9 01:53:10 2015 +0100

    git/misc/setup-repository: use our new git hooks, use symlinks, add common.sh and don't deny non-fast forwards by default.
---
 git/misc/setup-repository |   12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/git/misc/setup-repository b/git/misc/setup-repository
index 647d4a5..ff32ead 100755
--- a/git/misc/setup-repository
+++ b/git/misc/setup-repository
@@ -35,14 +35,16 @@ ${GIT} config --add core.logallrefupdates true
 echo "${DESCRIPTION}" > description
 
 # Enable the hook scripts
+[ -f hooks/common.sh ] || {
+  ln -sv /srv/git/code.x2go.org/_hooks_/common.sh hooks/common.sh
+}
+
 [ -f hooks/post-receive ] || {
-  cp -L /srv/git/_hooks_/post-receive._code.x2go.org_ hooks/post-receive.tmp
-  chmod 0660 hooks/post-receive.tmp
+  ln -sv /srv/git/code.x2go.org/_hooks_/post-receive hooks/post-receive.tmp
 }
 
 [ -f hooks/update ] || {
-  cp -L /srv/git/_hooks_/update._code.x2go.org_ hooks/update.tmp
-  chmod 0660 hooks/update.tmp
+  ln -sv /srv/git/code.x2go.org/_hooks_/update hooks/update.tmp
 }
 
 # set up ACLs
@@ -84,6 +86,8 @@ ${GIT} config --add hooks.showdiff "true"
 
 ${GIT} config --add hooks.denycreatebranch false
 
+# Non-Fast Forwards checks and rejections are covered by the hooks.
+${GIT} config receive.denyNonFastForwards false
 
 mv config config.tmp
 chmod 0660 config.tmp

--
Alioth's /srv/git/code.x2go.org/maintenancescripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git


More information about the x2go-commits mailing list