X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=configure-sf;h=1b9d61aed199a1c20085967a985532efb69538b8;hb=a883cf322f44cc58db9e312004e95a1147db4d96;hp=5f08c21e2b3fb96677e3bdf44fa7c8d10db7de7b;hpb=8dc4a48fff57a1db84a64dd50924776f3ba15e9a;p=git-scripts.git diff --git a/configure-sf b/configure-sf index 5f08c21..1b9d61a 100755 --- a/configure-sf +++ b/configure-sf @@ -3,7 +3,7 @@ # Origin: http://blog.gorwits.me.uk/index.html%3Fp=529.html if [ -z "$3" ]; then - echo "Usage: $0 PROJECTNAME REPONAME MLIST [prefix [maxlines]]" >&2 + echo "Usage: $0 PROJECTNAME REPONAME MLIST prefix [maxlines]" >&2 exit 1 fi @@ -21,15 +21,13 @@ echo "$PROJECTNAME git repository ($REPONAME)" > description #http://tinyurl.com/git-post-commit-email wget -O hooks/post-receive-user https://git.kernel.org/cgit/git/git.git/plain/contrib/hooks/post-receive-email && chmod +x hooks/post-receive-user && -#chmod g+w hooks/post-receive-user && +chmod g+w hooks/post-receive-user && git config hooks.diffopts "--stat --summary --find-copies-harder -p" if [ -n "$maxlines" ]; then git config hooks.emailmaxlines "$maxlines" && fi && -if [ -n "$prefix" ]; then - git config hooks.emailprefix "$prefix" -fi && +git config hooks.emailprefix "$prefix" && 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" +#git config hooks.showrev "t=%s; printf 'http://$PROJECTNAME.git.sourceforge.net/git/gitweb.cgi?p=$PROJECTNAME/$REPONAME;a=commitdiff;h=%%s' \$t; echo;echo; git show -C \$t; echo"