Meta/pushall: show where we are pushing
Junio C Hamano committed
Oct 19, 2011 at 11:14 UTC
a31dee5a2178a2c0bc6f150f326e1d2bdeadf80d
1 file changed
+6
-5
pushall
+6
-5
@@ -1,13 +1,14 @@
1
#!/bin/sh
2
3
-git push repo "$@" &&
4
-git push gph "$@" &&
5
-git push github2 "$@" &&
6
-git push sfjp "$@" &&
7
-git push sf.net "$@" &&
3
+for remote in ko repo gph github2 sfjp sf.net
4
+do
5
+ printf "%s: " "$remote"
6
+ git push "$remote" "$@" || exit $?
7
+done
8
9
case "$#" in
10
0)
11
+ printf "github mirror: "
12
git push github "$@" ;;
13
*)
14
echo "No push to github" ;;