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