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

gpush: improve remote repository enum

parent 064ec533
......@@ -26,6 +26,7 @@ fi
if is_girar_name $1 ; then
GIRARHOST=$1
OVERRIDEGIRARHOST=$1
shift
fi
......@@ -68,12 +69,15 @@ push_to_remote()
timeout $SSHTIMEOUT git push --tags $GHOST:packages/$PROJECTNAME.git $TARGETBRANCH
}
REMOTELIST="$(get_remote_git_list)"
# if remote list is empty, do ginit
if [ -z "$(get_remote_git_list)" ] ; then
ginit $GIRARHOST
fi
[ -n "$REMOTELIST" ] || ginit $GIRARHOST
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
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