From: Oleg Broytman Date: Mon, 21 Jul 2014 07:03:53 +0000 (+0400) Subject: Configure a repository at SourceForge X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=a8769107a6a2ab15f64144b10ca98939cea03e69;p=git-scripts.git Configure a repository at SourceForge --- diff --git a/configure-sf b/configure-sf new file mode 100755 index 0000000..7ab51f6 --- /dev/null +++ b/configure-sf @@ -0,0 +1,27 @@ +#! /bin/sh + +if [ -z "$3" ]; then + echo "Usage: $0 PROJECTNAME REPONAME MLIST" >&2 + exit 1 +fi + +PROJECTNAME="$1" +REPONAME="$2" +MLIST="$3" + +cd /home/git/p/"$PROJECTNAME/$REPONAME".git && +echo "$PROJECTNAME git repository ($REPONAME)" > description +#git config --global --bool receive.denyNonFastForwards true && + +#curl -L -o hooks/post-receive-user https://git.kernel.org/cgit/git/git.git/plain/contrib/hooks/post-receive-email && +#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 && + +git config hooks.diffopts "--stat --summary --find-copies-harder -p" +git config hooks.emailmaxlines 500 && +git config hooks.emailprefix "[git push]" && +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"