make git clone with --depth 1

It will make downloading them faster. Also, I would write it to check if the repos exists and try to `git pull` and checkout if it does.
This commit is contained in:
Billingsly Wetherfordshire 2013-05-02 01:06:01 -05:00
commit 9f4e725fb1

View file

@ -200,7 +200,7 @@ proc install(packages: seq[String]) =
of "git":
echo("Executing git...")
removeDir(downloadDir)
doCmd("git clone " & pkg.url & " " & downloadDir)
doCmd("git clone --depth 1 " & pkg.url & " " & downloadDir)
if dvcsTag != "":
doCmd("cd \"" & downloadDir & "\" && git checkout " & dvcsTag)
else: quit("Unknown download method: " & pkg.downloadMethod, QuitFailure)
@ -270,4 +270,4 @@ when isMainModule: