From 41ae09a9c923f959b1cec3fe66130a895e54709f Mon Sep 17 00:00:00 2001 From: Stefan Becker Date: Thu, 2 Jun 2011 18:10:23 +0300 Subject: [PATCH] git-snapshot.sh: support alternative repository URL This makes it possible to create snaphots from the local repository. --- git-snapshot.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/git-snapshot.sh b/git-snapshot.sh index baec41d6..3c5d222f 100755 --- a/git-snapshot.sh +++ b/git-snapshot.sh @@ -10,6 +10,7 @@ # # Configuration PROJECT=pidgin-sipe +REPOSITORY="git+ssh://mob@repo.or.cz/srv/git/siplcs.git" BRANCH=mob # Create clone @@ -21,8 +22,12 @@ REFERENCE=${1:+--reference $1} if [ -n "$1" ]; then echo "Using local repository under '$1'." fi +if [ -n "$2" ]; then + REPOSITORY=$2 +fi +echo "Cloning from repository URL '$REPOSITORY'." rm -rf $CLONEDIR -git clone -n $REFERENCE git+ssh://mob@repo.or.cz/srv/git/siplcs.git $CLONEDIR +git clone -n $REFERENCE $REPOSITORY $CLONEDIR cd $CLONEDIR git checkout -q -b $CLONEDIR origin/$BRANCH -- 2.11.4.GIT