Commit 8fb9e151 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmgp: rename origin to gear

parent ed0dcca6
......@@ -281,11 +281,15 @@ if [ -n "$CLONEGIT" ] ; then
RREPO="/gears/$REPOPATH"
if [ -z "$MIGRATEGIRAR" ] ; then
if ! docmd git_clone $RREPO ; then
if ! git_clone $RREPO ; then
# http://git.altlinux.org/srpms/N/NAME.git
RREPO="/srpms/$REPOPATH"
docmd git_clone $RREPO || fatal "Can't clone $RREPO."
fi
if cd $PKGNAME ; then
docmd git remote rename origin gear
cd - >/dev/null
fi
else
[ -z "$PUBLICACCESS" ] || fatal "Can't remote clone via public access"
if exist_git_repo $RREPO ; 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