This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository maintenancescripts. commit a8557479c833bc81118b0da303d93f31499d4798 Author: Mihai Moldovan <ionic@ionic.de> Date: Mon Feb 23 22:59:47 2015 +0100 git/hooks/update-script._check_: use (...) instead of ...) for case-switches. --- git/hooks/update-script._check_ | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/git/hooks/update-script._check_ b/git/hooks/update-script._check_ index da52255..e8e5898 100755 --- a/git/hooks/update-script._check_ +++ b/git/hooks/update-script._check_ @@ -6,21 +6,21 @@ MERGE="0" [ "$(basename "${0}")" = "update-script_check+allow-merges_" ] && MERGE="1" case "$1" in - refs/tags/*) + (refs/tags/*) [ -f "$GIT_DIR/$1" ] && deny >/dev/null "You can't overwrite an existing tag" ;; - refs/heads/*) + (refs/heads/*) BRANCH="${1#refs/heads/}" # No rebasing or rewinding on release, build or master branches. if expr "$2" : '0*$' >/dev/null; then case "${BRANCH}" in - release/*|build-*|master|feature/*|bugfix/*) info "The branch '$1' is new..." ;; - *) deny >/dev/null "ERROR: Branch name does not meet the project policies. Please contact git-admin@x2go.org." ;; + (release/*|build-*|master|feature/*|bugfix/*) info "The branch '$1' is new..." ;; + (*) deny >/dev/null "ERROR: Branch name does not meet the project policies. Please contact git-admin@x2go.org." ;; esac else case "${BRANCH}" in - release/*|build-*|master) + (release/*|build-*|master) # updating -- check for merge commit and deny or warn [ -n "$(git rev-list --merges $2..$3)" ] && { if [ "${MERGE}" = "0" ]; then @@ -37,8 +37,8 @@ case "$1" in *) 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}." ;; - *) deny >/dev/null "ERROR: Branch name does not meet the project policies. Please contact git-admin@x2go.org." ;; + (feature/*|bugfix/*) info "Not checking for non-fast-forwards or merges on ${BRANCH}." ;; + (*) deny >/dev/null "ERROR: Branch name does not meet the project policies. Please contact git-admin@x2go.org." ;; esac fi for REVISION in $(git rev-list --reverse "$2..$3") ; do -- Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git