This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository maintenancescripts. commit 477359b509c411cbbc16655b34b6c5ac53f60099 Author: Mihai Moldovan <ionic@ionic.de> Date: Mon Feb 23 22:16:40 2015 +0100 git/hooks: fix function definition syntax. --- git/hooks/common.sh | 7 ++++--- git/hooks/x2go-post-receive-close-bugs | 2 +- git/hooks/x2go-post-receive-tag-pending | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/git/hooks/common.sh b/git/hooks/common.sh index e5b2f21..6c6100f 100755 --- a/git/hooks/common.sh +++ b/git/hooks/common.sh @@ -13,7 +13,7 @@ fi # GIT_DIR will always be the current repository's .git dir. GIT_DIR="$(pwd)" -function make_boolean() { +function make_boolean () { OPTION="${1}" case "${OPTION}" in @@ -34,13 +34,14 @@ verbose="1" # Default shell globbing messes things up downstream. GLOBIGNORE=* -function grant() { +# Only stderr is passed on to the client. +function grant () { [ "$(make_boolean "${verbose}")" = "1" ] && echo "-Grant- ${1}" >&2 echo grant exit 0 } -function info() { +function info () { [ "$(make_boolean "${verbose}")" = "1" ] && echo "-Info- ${1}" >&2 } diff --git a/git/hooks/x2go-post-receive-close-bugs b/git/hooks/x2go-post-receive-close-bugs index a0d80cb..39c2c6b 100755 --- a/git/hooks/x2go-post-receive-close-bugs +++ b/git/hooks/x2go-post-receive-close-bugs @@ -29,7 +29,7 @@ PROJECT="${GIT_REPO_NAME//.git/}" tempdir="$(mktemp -d)" trap "rm -rf \"${tempdir}\"" EXIT -function send_mail() { # send_mail bugno revno diff_file +function send_mail () { # send_mail bugno revno diff_file local bug="${1}" local fixed_in_version="${2}" local oldrev="${3}" diff --git a/git/hooks/x2go-post-receive-tag-pending b/git/hooks/x2go-post-receive-tag-pending index 3bcc3c0..bf4bdcb 100755 --- a/git/hooks/x2go-post-receive-tag-pending +++ b/git/hooks/x2go-post-receive-tag-pending @@ -29,7 +29,7 @@ PROJECT="${GIT_REPO_NAME//.git/}" tempdir="$(mktemp -d)" trap "rm -rf \"${tempdir}\"" EXIT -function send_mail() { # send_mail bugno revno diff_file +function send_mail () { # send_mail bugno revno diff_file local bug="${1}" local fixed_in_version="${2}" local rev="${3}" -- Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git