From 9f4e725fb160c958ce635bc0056680501500dc62 Mon Sep 17 00:00:00 2001 From: Billingsly Wetherfordshire Date: Thu, 2 May 2013 01:06:01 -0500 Subject: [PATCH] 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. --- babel.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/babel.nim b/babel.nim index 2f73ce5..6d49432 100644 --- a/babel.nim +++ b/babel.nim @@ -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: - \ No newline at end of file +