Skip to content

Commit 36c4696

Browse files
committed
Meta/pushall: treat two mirrors equally
1 parent bdfe69e commit 36c4696

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

pushall

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/bin/sh
22

3-
sites='ko repo github2 sfjp sf.net gob-private '
3+
sites='ko repo github2 sfjp sf.net'
44
nexts='ko repo github2 '
5+
mirrors='github gob-private'
56

67
push_retry () {
78
sites=$1
@@ -38,8 +39,11 @@ push_retry "$sites" "$@"
3839

3940
case "$#,$*" in
4041
0,* | 1,-n)
41-
printf "github mirror: "
42-
git push github "$@" || exit $?
42+
for mirror in $mirrors
43+
do
44+
printf "$mirror mirror: "
45+
git push $mirror "$@" || exit $?
46+
done
4347
for topic in htmldocs manpages
4448
do
4549
printf "%s: " "$topic"

0 commit comments

Comments
 (0)