Commit 49aa9b7e authored by Vitaly Lipatov's avatar Vitaly Lipatov

gpush: improve remote repository enum

parent 064ec533
...@@ -26,6 +26,7 @@ fi ...@@ -26,6 +26,7 @@ fi
if is_girar_name $1 ; then if is_girar_name $1 ; then
GIRARHOST=$1 GIRARHOST=$1
OVERRIDEGIRARHOST=$1
shift shift
fi fi
...@@ -68,12 +69,15 @@ push_to_remote() ...@@ -68,12 +69,15 @@ push_to_remote()
timeout $SSHTIMEOUT git push --tags $GHOST:packages/$PROJECTNAME.git $TARGETBRANCH timeout $SSHTIMEOUT git push --tags $GHOST:packages/$PROJECTNAME.git $TARGETBRANCH
} }
REMOTELIST="$(get_remote_git_list)"
# if remote list is empty, do ginit # if remote list is empty, do ginit
if [ -z "$(get_remote_git_list)" ] ; then [ -n "$REMOTELIST" ] || ginit $GIRARHOST
ginit $GIRARHOST
fi
for i in `( echo $GIRARHOST; get_remote_git_list ) | uniq` ; do LISTGIRARHOST="$GIRARHOST $(do_exclude_list $REMOTELIST $GIRARHOST)"
[ -n "$OVERRIDEGIRARHOST" ] && LISTGIRARHOST=$OVERRIDEGIRARHOST
for i in $LISTGIRARHOST ; do
push_to_remote $i push_to_remote $i
done done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment