Fixes git command line install for a specific tag. Refs #70.
This commit is contained in:
parent
2fb06b09b4
commit
6f68428915
1 changed files with 7 additions and 5 deletions
|
|
@ -175,11 +175,13 @@ proc doDownload*(url: string, downloadDir: string, verRange: PVersionRange,
|
||||||
if verRange.spe == newSpecial(getHeadName(downMethod)):
|
if verRange.spe == newSpecial(getHeadName(downMethod)):
|
||||||
doClone(downMethod, url, downloadDir) # Grab HEAD.
|
doClone(downMethod, url, downloadDir) # Grab HEAD.
|
||||||
else:
|
else:
|
||||||
# We don't know if we got a commit hash or a branch here, and
|
# Mercurial requies a clone and checkout. The git clone operation is
|
||||||
# we can't clone a specific commit (with depth 1) according to:
|
# already fragmented into multiple steps so we just call doClone().
|
||||||
# http://stackoverflow.com/a/7198956/492186
|
if downMethod == TDownloadMethod.Git:
|
||||||
doClone(downMethod, url, downloadDir, tip = false)
|
doClone(downMethod, url, downloadDir, $verRange.spe)
|
||||||
doCheckout(downMethod, downloadDir, $verRange.spe)
|
else:
|
||||||
|
doClone(downMethod, url, downloadDir, tip = false)
|
||||||
|
doCheckout(downMethod, downloadDir, $verRange.spe)
|
||||||
else:
|
else:
|
||||||
case downMethod
|
case downMethod
|
||||||
of TDownloadMethod.Git:
|
of TDownloadMethod.Git:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue