Directly clone to right branch
--HG-- branch : bgschaid/feature/vagrantSandboxBranch
This commit is contained in:
parent
6aa988de47
commit
af548de6c0
1 changed files with 3 additions and 3 deletions
|
@ -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"
|
||||||
|
|
Reference in a new issue