aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorArmando Di Cianno2011-03-11 16:35:11 -0500
committerAdam Vandenberg2011-03-12 11:55:12 -0800
commit79d8d16184172f1aa4fabf0c4aa8017a9a3b0361 (patch)
tree69141d7c04c8e79b9cb05210197faccd167492d2 /Library/Homebrew
parent9baece866bda7442464c85a2a3f6eba9a2d619da (diff)
downloadbrew-79d8d16184172f1aa4fabf0c4aa8017a9a3b0361.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/Homebrew')
-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