diff options
| author | Armando Di Cianno | 2011-03-11 16:35:11 -0500 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-12 11:55:12 -0800 |
| commit | 79d8d16184172f1aa4fabf0c4aa8017a9a3b0361 (patch) | |
| tree | 69141d7c04c8e79b9cb05210197faccd167492d2 /Library/Homebrew | |
| parent | 9baece866bda7442464c85a2a3f6eba9a2d619da (diff) | |
| download | brew-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.rb | 2 |
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 |
