From: Junio C Hamano Date: Tue, 6 Mar 2012 06:49:55 +0000 (-0800) Subject: Meta/pushall: explicitly support -n X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80a572b7ad0c576fd72bb7976fc67843a1a11cc9;p=thirdparty%2Fgit.git Meta/pushall: explicitly support -n --- diff --git a/pushall b/pushall index 872818d12d..4045cbd27b 100755 --- a/pushall +++ b/pushall @@ -6,14 +6,14 @@ do git push "$remote" "$@" || exit $? done -case "$#" in -0) +case "$#,$*" in +0,* | 1,-n) printf "github mirror: " git push github "$@" || exit $? for topic in htmldocs manpages do printf "%s: " "$topic" - ( cd ../git-$topic.git && git push ) || exit + ( cd ../git-$topic.git && git push "$@") || exit done ;; esac