Commit 28c8f4f9 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmgp: first try clone from git.alt/gears

parent 34e7561b
...@@ -262,9 +262,15 @@ fi ...@@ -262,9 +262,15 @@ fi
if [ -n "$CLONEGIT" ] ; then if [ -n "$CLONEGIT" ] ; then
PKGNAME=$1 PKGNAME=$1
INITLETTER=$(echo $PKGNAME | cut -c1) INITLETTER=$(echo $PKGNAME | cut -c1)
# http://git.altlinux.org/srpms/N/NAME.git
echo "Remote clone from /srpms/$INITLETTER/$PKGNAME.git ..." # http://git.altlinux.org/gears/N/NAME.git
ssh $GIRARHOST clone /srpms/$INITLETTER/$PKGNAME.git packages/$PKGNAME.git || warning "Can't remote clone." echo "Remote clone from /gears/$INITLETTER/$PKGNAME.git ..."
if ! ssh $GIRARHOST clone /srpms/$INITLETTER/$PKGNAME.git packages/$PKGNAME.git ; then
# http://git.altlinux.org/srpms/N/NAME.git
echo "Remote clone from /srpms/$INITLETTER/$PKGNAME.git ..."
ssh $GIRARHOST clone /srpms/$INITLETTER/$PKGNAME.git packages/$PKGNAME.git || warning "Can't remote clone."
fi
git clone git.alt:packages/$PKGNAME.git git clone git.alt:packages/$PKGNAME.git
if cd $PKGNAME ; then if cd $PKGNAME ; then
CURRENTBRANCH=$(get_current_branch) CURRENTBRANCH=$(get_current_branch)
......
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