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
index fd2984636e..7755a181ed 100755
--- a/pushall
+++ b/pushall
@@ -1,13 +1,14 @@
#!/bin/sh
-git push repo "$@" &&
-git push gph "$@" &&
-git push github2 "$@" &&
-git push sfjp "$@" &&
-git push sf.net "$@" &&
+for remote in ko repo gph github2 sfjp sf.net
+do
+ printf "%s: " "$remote"
+ git push "$remote" "$@" || exit $?
+done
case "$#" in
0)
+ printf "github mirror: "
git push github "$@" ;;
*)
echo "No push to github" ;;