Commit 9b416384 authored by Vitaly Lipatov's avatar Vitaly Lipatov

git: set GIRARHOST if empty, get one from ~/.ssh/config

parent 48ddc566
...@@ -72,7 +72,15 @@ set_girar_host() ...@@ -72,7 +72,15 @@ set_girar_host()
if is_one_girar_name "$REMOTELIST" ; then if is_one_girar_name "$REMOTELIST" ; then
# use one target if it one # use one target if it one
GIRARHOST="$REMOTELIST" GIRARHOST="$REMOTELIST"
return 1
fi fi
# if no default, set default GIRARHOST from ~/.ssh/config
if [ -z "$GIRARHOST" ] ; then
GIRARHOST=$(get_girar_host_from_ssh)
#[ -n "$GIRARHOST" ] || fatal "Can't get default girar alias (like git.alt) from ~/.ssh/config"
fi
return 1 return 1
} }
......
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