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