Directly clone to right branch

--HG--
branch : bgschaid/feature/vagrantSandboxBranch
This commit is contained in:
Bernhard F.W. Gschaider 2013-09-04 16:17:39 +02:00
parent 6aa988de47
commit af548de6c0

View file

@ -44,11 +44,11 @@ then
echo echo
echo "Parent is mercurial. Hello Bernhard" echo "Parent is mercurial. Hello Bernhard"
echo echo
su vagrant - -c "hg clone $OFParent $OFClone"
branchName=`hg branch -R $OFParent` branchName=`hg branch -R $OFParent`
echo
echo "Parent is on branch $branchName" 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 else
echo echo
echo "Problem. Parent $OFParent is neither git nor mercurial" echo "Problem. Parent $OFParent is neither git nor mercurial"