aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorArmando Di Cianno2011-03-11 16:35:11 -0500
committerAdam Vandenberg2011-03-12 11:55:12 -0800
commitc85297c7a2567a1c10fcdcca7bef8e5674d9ddd5 (patch)
tree150c1c57bd2dbef23f1f84174e877c6b9bf362fa /Library
parentb9e9ded33b38d56a76923125cc818b9222ee8596 (diff)
downloadhomebrew-c85297c7a2567a1c10fcdcca7bef8e5674d9ddd5.tar.bz2
use "git clone --depth 1"
Prefer a shallow clone for builds from git repos, as we don't need all the historical stuff. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index c0daf687a..68ad96390 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -268,7 +268,7 @@ class GitDownloadStrategy <AbstractDownloadStrategy
end
unless @clone.exist?
- safe_system 'git', 'clone', @url, @clone # indeed, leave it verbose
+ safe_system 'git', 'clone', '--depth', '1', @url, @clone # indeed, leave it verbose
else
puts "Updating #{@clone}"
Dir.chdir(@clone) do