[X2Go-Commits] [maintenancescripts] 01/04: git/hooks/update-script._check_: fix ...) case-switch forgotten last time.

git-admin at x2go.org git-admin at x2go.org
Tue Feb 24 00:03:20 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 6672f4444ffe2fc0ff88f590bd917e084719aa94
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Mon Feb 23 23:15:28 2015 +0100

    git/hooks/update-script._check_: fix ...) case-switch forgotten last time.
---
 git/hooks/update-script._check_ |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/git/hooks/update-script._check_ b/git/hooks/update-script._check_
index e8e5898..e485c6a 100755
--- a/git/hooks/update-script._check_
+++ b/git/hooks/update-script._check_
@@ -33,8 +33,8 @@ case "$1" in
           # updating -- make sure it is a fast forward
           mb=$(git merge-base "$2" "$3")
           case "$mb,$2" in
-            "$2,$mb") info "Update is fast-forward" ;;
-            *)        deny > /dev/null "ERROR: This is not a fast-forward update. History has been rewritten." ;;
+            ("$2,$mb") info "Update is fast-forward" ;;
+            (*)        deny > /dev/null "ERROR: This is not a fast-forward update. History has been rewritten." ;;
           esac
           ;;
         (feature/*|bugfix/*) info "Not checking for non-fast-forwards or merges on ${BRANCH}." ;;

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


More information about the x2go-commits mailing list