]> git.phdru.name Git - git-scripts.git/blobdiff - configure-sf
Feat(submodules/remove): Add option `-c`
[git-scripts.git] / configure-sf
index 796e510c791723193a0a1dafc147a6c1cc1af18d..75ae13e9774b4d4169cd3b3d2ba83f889d48da07 100755 (executable)
@@ -20,14 +20,13 @@ echo "$PROJECTNAME git repository ($REPONAME)" > description
 #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 &&
+chmod u=rwx,go=rx hooks/post-receive-user &&
 
-git config hooks.diffopts "--stat --summary --find-copies-harder -p"
+#git config hooks.diffopts "--stat --summary --find-copies-harder -p" &&
 if [ -n "$maxlines" ]; then
-   git config hooks.emailmaxlines "$maxlines" &&
+   git config hooks.emailmaxlines "$maxlines"
 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' \$t; echo;echo; git show -C \$t; echo"
+git config hooks.mailinglist $MLIST@lists.sourceforge.net &&
+exec git config hooks.showrev "t=%s; printf 'http://sourceforge.net/p/$PROJECTNAME/$REPONAME/ci/%%s' \$t; echo;echo; git show -C \$t; echo"