diff options
Diffstat (limited to 'support/download/hg')
-rwxr-xr-x | support/download/hg | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/support/download/hg b/support/download/hg index ac1e9b93b..5bdbbc82c 100755 --- a/support/download/hg +++ b/support/download/hg @@ -25,8 +25,14 @@ repo="${2}" cset="${3}" basename="${4}" -${HG} clone ${verbose} --noupdate "${repo}" "${basename}" +# Caller needs to single-quote its arguments to prevent them from +# being expanded a second time (in case there are spaces in them) +_hg() { + eval ${HG} "${@}" +} -${HG} archive ${verbose} --repository "${basename}" --type tgz \ - --prefix "${basename}" --rev "${cset}" \ - "${output}" +_hg clone ${verbose} --noupdate "'${repo}'" "'${basename}'" + +_hg archive ${verbose} --repository "'${basename}'" --type tgz \ + --prefix "'${basename}'" --rev "'${cset}'" \ + "'${output}'" |