From d32a30a0800d96a7896a00fc204567443876e18f Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 21 May 2010 16:35:20 +0200 Subject: [PATCH 1/1] update the comments wrt hooks Signed-off-by: martin f. krafft --- fbi-announce.sh | 14 +------------- post-receive-hook.sh | 3 +++ 2 files changed, 4 insertions(+), 13 deletions(-) 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}) -- 2.39.5