Commit e08882bd authored by Vitaly Lipatov's avatar Vitaly Lipatov

some fixes for gpush

parent aa22fc5d
......@@ -24,12 +24,21 @@ if [ "$1" = "-a" ] || [ "$1" = "--all" ] ; then
shift
fi
REMOTELIST="$(get_remote_git_list)"
if is_girar_name $1 ; then
GIRARHOST=$1
OVERRIDEGIRARHOST=$1
shift
fi
# disable use one target if it one
if false && is_one_girar_name "$REMOTELIST" ; then
GIRARHOST="$REMOTELIST"
OVERRIDEGIRARHOST=$GIRARHOST
shift
fi
# use as project name
#if [ -n "$1" ] ; then
# PROJECTNAME=$1
......@@ -83,12 +92,10 @@ push_to_remote()
}
REMOTELIST="$(get_remote_git_list)"
# if remote list is empty, do ginit
[ -n "$REMOTELIST" ] || ginit $GIRARHOST
LISTGIRARHOST="$GIRARHOST $(do_exclude_list $REMOTELIST $GIRARHOST)"
LISTGIRARHOST="$GIRARHOST $(do_exclude_list "$GIRARHOST" "$REMOTELIST")"
[ -n "$OVERRIDEGIRARHOST" ] && LISTGIRARHOST=$OVERRIDEGIRARHOST
for i in $LISTGIRARHOST ; do
push_to_remote $i
......
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