From bf0819a6a1af49727782d06ad192e7edc541d6b5 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 21 Jul 2014 11:06:03 +0400 Subject: [PATCH] Allow to configure subject prefix --- configure-sf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configure-sf b/configure-sf index 7ab51f6..aa4a1c9 100755 --- a/configure-sf +++ b/configure-sf @@ -1,13 +1,14 @@ #! /bin/sh if [ -z "$3" ]; then - echo "Usage: $0 PROJECTNAME REPONAME MLIST" >&2 + echo "Usage: $0 PROJECTNAME REPONAME MLIST [prefix]" >&2 exit 1 fi PROJECTNAME="$1" REPONAME="$2" MLIST="$3" +prefix="$4" cd /home/git/p/"$PROJECTNAME/$REPONAME".git && echo "$PROJECTNAME git repository ($REPONAME)" > description @@ -21,7 +22,9 @@ chmod +x hooks/post-receive-user && git config hooks.diffopts "--stat --summary --find-copies-harder -p" git config hooks.emailmaxlines 500 && -git config hooks.emailprefix "[git push]" && +if [ -n "$prefix" ]; then + git config hooks.emailprefix "$prefix" +fi && git config hooks.envelopesender noreply@sourceforge.net && git config hooks.mailinglist $MLIST@lists.sourceforge.net #git config hooks.showrev "t=%s; printf 'http://$PROJECTNAME.git.sourceforge.net/git/gitweb.cgi?p=$PROJECTNAME/$REPONAME;a=commitdiff;h=%%s' ; echo;echo; git show -C ; echo" -- 2.39.2