tags 463316 + patch thanks Hi Sebastian!
It seems you replied too fast ;-) I've other patches already available, since I'm setting up the automatic commit mails for the Debian Common Lisp Team. On Wed, 30 Jan 2008 22:58:41 +0100, Sebastian Harl wrote: > On Wed, Jan 30, 2008 at 10:31:25PM +0100, Luca Capello wrote: >> similar to the darcs commit mail for packages managed by the Debian >> Common Lisp Team [1], I'd like to have the project URL in the commit >> mail. FWIW, the patch against upstream git included and available also on my git repository [1]. > Imho this should actually be solved in a more generic way. It would be > nice to be able to easily provide some header and footer that will be > prepended and appended to the commit e-mail respectively. Fully ACK, but I'm not sure I'll find the time to do this, other things come first, sorry. Thx, bye, Gismo / Luca Footnotes: [1] http://git.debian.org/?p=users/gismo/git.git;a=summary
From b54917fcdb0d2c488a38fec2b85b793ed1f90350 Mon Sep 17 00:00:00 2001 From: Luca Capello <[EMAIL PROTECTED]> Date: Wed, 30 Jan 2008 23:00:14 +0100 Subject: [PATCH] contrib/hooks/post-receive-email: add hooks.projecturl config option The project URL is inserted at the end of the commit email. Suggested through http://bugs.debian.org/463316 diff --git a/contrib/hooks/post-receive-email b/contrib/hooks/post-receive-email index 77c88eb..838472b 100644 --- a/contrib/hooks/post-receive-email +++ b/contrib/hooks/post-receive-email @@ -25,6 +25,9 @@ # # Config # ------ +# hooks.projecturl +# The URL for the project: if set then it is inserted at the end of the +# commit email. # hooks.mailinglist # This is the list that all pushes will go to; leave it blank to not send # emails for every ref update. @@ -209,6 +212,9 @@ generate_email_footer() -- $projectdesc EOF + if [ -n "$projecturl" ]; then + echo "$projecturl" + fi } # --------------- Branches @@ -622,6 +628,7 @@ then projectdesc="UNNAMED PROJECT" fi +projecturl=$(git config hooks.projecturl) recipients=$(git config hooks.mailinglist) announcerecipients=$(git config hooks.announcelist) envelopesender=$(git config hooks.envelopesender) -- 1.5.3.8
pgp8ApfWhGbjC.pgp
Description: PGP signature