From bab29bab721860a6f3fee4cc0f546764cda5ce87 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 15 Oct 2012 00:55:57 -0500 Subject: GitDownloadStrategy: avoid unnecessary checkout By default, git checks out the fetched ref after cloning the repo, but this is unnecessary as we explicitly check out the desired ref during staging. This also silences some unnecessarily confusing output. Signed-off-by: Jack Nagel --- Library/Homebrew/download_strategy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 7504eeb37..6d16deb5f 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -342,7 +342,7 @@ class GitDownloadStrategy < AbstractDownloadStrategy unless @clone.exist? # Note: first-time checkouts are always done verbosely - clone_args = [@@git, 'clone'] + clone_args = [@@git, 'clone', '--no-checkout'] clone_args << '--depth' << '1' if support_depth? case @spec -- cgit v1.2.3