Skip to content

Commit

Permalink
use "git clone --depth 1"
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
greymouser authored and adamv committed Mar 12, 2011
1 parent b9e9ded commit c85297c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/download_strategy.rb
Expand Up @@ -268,7 +268,7 @@ def fetch
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
Expand Down

0 comments on commit c85297c

Please sign in to comment.