From af548de6c0a3ee5932d103d9bb1a6f059a30272c Mon Sep 17 00:00:00 2001 From: "Bernhard F.W. Gschaider" Date: Wed, 4 Sep 2013 16:17:39 +0200 Subject: [PATCH] Directly clone to right branch --HG-- branch : bgschaid/feature/vagrantSandboxBranch --- vagrantSandbox/initGeneralScript.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vagrantSandbox/initGeneralScript.sh b/vagrantSandbox/initGeneralScript.sh index e3ce12a4b..7f7661de2 100755 --- a/vagrantSandbox/initGeneralScript.sh +++ b/vagrantSandbox/initGeneralScript.sh @@ -44,11 +44,11 @@ then echo echo "Parent is mercurial. Hello Bernhard" echo - su vagrant - -c "hg clone $OFParent $OFClone" branchName=`hg branch -R $OFParent` - echo + echo "Parent is on branch $branchName" - su vagrant - -c "hg update -R $OFClone $branchName" + su vagrant - -c "hg clone -r $branchName $OFParent $OFClone" + echo else echo echo "Problem. Parent $OFParent is neither git nor mercurial"