From d56f136381966e622bfd5e1c31cf00d522531c7d Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Thu, 5 Nov 2009 01:15:27 +0100 Subject: [PATCH] taskd/mail.sh: Load shlib, default subject prefix is site name --- taskd/mail.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/taskd/mail.sh b/taskd/mail.sh index 45272e5..8260613 100755 --- a/taskd/mail.sh +++ b/taskd/mail.sh @@ -13,6 +13,8 @@ # * Calling with arguments is same as giving them on stdin. # * Optional fourth parameter is project name, used at most places instead # of description. +# * Load shlib. +# * Default subject prefix is site name. # ================= # # This hook is stored in the contrib/hooks directory. Your distribution @@ -659,6 +661,8 @@ LOGBEGIN="- Log ---------------------------------------------------------------- LOGEND="-----------------------------------------------------------------------" # --- Config +. @basedir@/shlib.sh + # Set GIT_DIR either from the working directory, or from the environment # variable. GIT_DIR=$(git rev-parse --git-dir 2>/dev/null) @@ -687,7 +691,7 @@ fi recipients=$(git config hooks.mailinglist) announcerecipients=$(git config hooks.announcelist) envelopesender=$(git config hooks.envelopesender) -emailprefix=$(git config hooks.emailprefix || echo '[SCM] ') +emailprefix=$(git config hooks.emailprefix || echo "[$cfg_name] ") custom_showrev=$(git config hooks.showrev) # --- Main loop -- 2.11.4.GIT