diff options
| author | Armando Di Cianno | 2011-03-11 16:35:11 -0500 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-12 11:55:12 -0800 |
| commit | c85297c7a2567a1c10fcdcca7bef8e5674d9ddd5 (patch) | |
| tree | 150c1c57bd2dbef23f1f84174e877c6b9bf362fa /Library | |
| parent | b9e9ded33b38d56a76923125cc818b9222ee8596 (diff) | |
| download | homebrew-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.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 |
