Meta/pushall: explicitly support -n
Junio C Hamano committed
Mar 5, 2012 at 22:49 UTC
80a572b7ad0c576fd72bb7976fc67843a1a11cc9
1 file changed
+3
-3
pushall
+3
-3
@@ -6,14 +6,14 @@ do
6
git push "$remote" "$@" || exit $?
7
done
8
9
-case "$#" in
10
-0)
9
+case "$#,$*" in
10
+0,* | 1,-n)
11
printf "github mirror: "
12
git push github "$@" || exit $?
13
for topic in htmldocs manpages
14
do
15
printf "%s: " "$topic"
16
- ( cd ../git-$topic.git && git push ) || exit
16
+ ( cd ../git-$topic.git && git push "$@") || exit
17
done
18
;;
19
esac