4 echo "Usage: $0 PROJECTNAME REPONAME MLIST [prefix]" >&2
13 cd /home/git/p/"$PROJECTNAME/$REPONAME".git &&
14 echo "$PROJECTNAME git repository ($REPONAME)" > description
15 #git config --global --bool receive.denyNonFastForwards true &&
17 #curl -L -o hooks/post-receive-user https://git.kernel.org/cgit/git/git.git/plain/contrib/hooks/post-receive-email &&
18 #http://tinyurl.com/git-post-commit-email
19 wget -O hooks/post-receive-user https://git.kernel.org/cgit/git/git.git/plain/contrib/hooks/post-receive-email &&
20 chmod +x hooks/post-receive-user &&
21 #chmod g+w hooks/post-receive-user &&
23 git config hooks.diffopts "--stat --summary --find-copies-harder -p"
24 git config hooks.emailmaxlines 500 &&
25 if [ -n "$prefix" ]; then
26 git config hooks.emailprefix "$prefix"
28 git config hooks.envelopesender noreply@sourceforge.net &&
29 git config hooks.mailinglist $MLIST@lists.sourceforge.net
30 #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"