3 # Origin: http://blog.gorwits.me.uk/index.html%3Fp=529.html
6 echo "Usage: $0 PROJECTNAME REPONAME MLIST [prefix [maxlines]]" >&2
16 cd /home/git/p/"$PROJECTNAME/$REPONAME".git &&
17 echo "$PROJECTNAME git repository ($REPONAME)" > description
18 #git config --global --bool receive.denyNonFastForwards true &&
20 #curl -L -o hooks/post-receive-user https://git.kernel.org/cgit/git/git.git/plain/contrib/hooks/post-receive-email &&
21 #http://tinyurl.com/git-post-commit-email
22 wget -O hooks/post-receive-user https://git.kernel.org/cgit/git/git.git/plain/contrib/hooks/post-receive-email &&
23 chmod +x hooks/post-receive-user &&
24 #chmod g+w hooks/post-receive-user &&
26 git config hooks.diffopts "--stat --summary --find-copies-harder -p"
27 if [ -n "$maxlines" ]; then
28 git config hooks.emailmaxlines "$maxlines" &&
30 if [ -n "$prefix" ]; then
31 git config hooks.emailprefix "$prefix"
33 git config hooks.envelopesender noreply@sourceforge.net &&
34 git config hooks.mailinglist $MLIST@lists.sourceforge.net
35 #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"