Meta/pushall: treat two mirrors equally
Junio C Hamano committed
May 25, 2017 at 11:19 UTC
36c4696f0e92f33c49804849575683c43fd7fb17
1 file changed
+7
-3
pushall
+7
-3
index 782680d229..78680bc187 100755
--- a/pushall
+++ b/pushall
@@ -1,7 +1,8 @@
#!/bin/sh
-sites='ko repo github2 sfjp sf.net gob-private '
+sites='ko repo github2 sfjp sf.net'
nexts='ko repo github2 '
+mirrors='github gob-private'
push_retry () {
sites=$1
@@ -38,8 +39,11 @@ push_retry "$sites" "$@"
case "$#,$*" in
0,* | 1,-n)
- printf "github mirror: "
- git push github "$@" || exit $?
+ for mirror in $mirrors
+ do
+ printf "$mirror mirror: "
+ git push $mirror "$@" || exit $?
+ done
for topic in htmldocs manpages
do
printf "%s: " "$topic"