forked from lix-project/hydra
reproduce.tt: Create the checkout dir before an hg clone
For some reason, hg clone from a local (path-based) repo will fail if the parent directory of the destination directory doesn't exist (though it succeeds when cloning from an http repo). Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
parent
1277a8fc1c
commit
8e716ff062
|
@ -110,6 +110,7 @@ if ! [ -d "$inputDir" ]; then
|
|||
requireCommand hg
|
||||
inputDirTmp="$inputDir.tmp"
|
||||
rm -rf "$inputDirTmp"
|
||||
mkdir -p "$inputDirTmp"
|
||||
hg clone '[% input.uri %]' "$inputDirTmp"
|
||||
(cd "$inputDirTmp" && hg update '[% input.revision %]')
|
||||
revCount="$(cd "$inputDirTmp" && (hg log -r '[% input.revision %]' --template "{rev}"))"
|
||||
|
|
Loading…
Reference in a new issue