From: martin f. krafft Date: Fri, 21 May 2010 14:35:20 +0000 (+0200) Subject: update the comments wrt hooks X-Git-Url: https://git.madduck.net/code/fbi-announce.git/commitdiff_plain/d32a30a0800d96a7896a00fc204567443876e18f?ds=sidebyside;hp=ca7d9b932db940fb5dc15cadbddcc873de482545 update the comments wrt hooks Signed-off-by: martin f. krafft --- diff --git a/fbi-announce.sh b/fbi-announce.sh index d8542e8..eb0329c 100755 --- a/fbi-announce.sh +++ b/fbi-announce.sh @@ -23,19 +23,7 @@ # [@@component@@/]@@project@@: @@author@@: \ # @@logmessage@@ [@@ref@@] @@url@@) # -# The hook is meant ot be run either from a post-commit hook or an update hook. If run in -# a central repository where people push to you want to run it in the update hook! -# -# post-commit: It parses latest commit and current HEAD to get the information it needs. -# -# update: You have to call it once per merged commit: -# -# refname=$1 -# oldhead=$2 -# newhead=$3 -# for merged in $(git rev-list ${oldhead}..${newhead} | tac) ; do -# /path/to/ciabot.bash ${refname} ${merged} -# done +# The hook is meant ot be run from the Git post-receive hook. # set -eu diff --git a/post-receive-hook.sh b/post-receive-hook.sh index a5df638..c107292 100755 --- a/post-receive-hook.sh +++ b/post-receive-hook.sh @@ -6,6 +6,9 @@ # # Distributed under the terms of the Artistic Licence 2.0 # +# +# Link this to $GIT_DIR/hooks/post-receive (or …/update). +# set -eu realself=$(readlink -f ${0})