]> git.madduck.net Git - code/fbi-announce.git/blobdiff - fbi-announce.sh

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

update the comments wrt hooks
[code/fbi-announce.git] / fbi-announce.sh
index 76b3581a9bbb602b196df7f849ac7c257dd5257e..eb0329c644572aa3062f877f5588265c3c9198cd 100755 (executable)
 #                               [@@component@@/]@@project@@: @@author@@: \
 #                               @@logmessage@@ [@@ref@@] @@url@@)
 #
 #                               [@@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
 
 #
 set -eu
 
@@ -99,7 +87,7 @@ ${sendmail} <<_eom
 ${from:+From: ${from}
 }To: ${to}
 Subject: Announce ${project}
 ${from:+From: ${from}
 }To: ${to}
 Subject: Announce ${project}
-Message-Id: <fbi-announce.${ref}@${project}>
+Message-Id: <fbi-announce.${project}.${ref}@$(hostname --fqdn)>
 
 ${msg}
 _eom
 
 ${msg}
 _eom