Commit 4663138d authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmgp: do not call ssh after switch to public

parent 2494e98e
...@@ -300,6 +300,7 @@ git_clone() ...@@ -300,6 +300,7 @@ git_clone()
else else
local GIRARURL=$(get_git_url $GITHOST) local GIRARURL=$(get_git_url $GITHOST)
[ -n "$GIRARURL" ] || fatal "Can't get public URL for $GIRHOST" [ -n "$GIRARURL" ] || fatal "Can't get public URL for $GIRHOST"
PUBLICACCESS=1
docmd git clone $GIRARURL$RREPO docmd git clone $GIRARURL$RREPO
fi fi
} }
...@@ -337,9 +338,12 @@ if [ -n "$CLONEGIT" ] ; then ...@@ -337,9 +338,12 @@ if [ -n "$CLONEGIT" ] ; then
cd - >/dev/null cd - >/dev/null
fi fi
echo "See other repos at $GIRARHOST:" if [ -z "$PUBLICACCESS" ] ; then
giter $GITHOST list packages $PKGNAME echo "See other repos at $GIRARHOST:"
exit $? giter $GITHOST list packages $PKGNAME
fi
exit $0
fi fi
if [ -n "$MIGRATEGIRAR" ] ; then if [ -n "$MIGRATEGIRAR" ] ; then
......
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