diff options
| author | Jack Nagel | 2012-10-15 00:55:57 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-10-15 15:29:23 -0500 |
| commit | bab29bab721860a6f3fee4cc0f546764cda5ce87 (patch) | |
| tree | 2ad94293cc812e5fefb935697108815414d1c3ea /Library | |
| parent | 799c164cd94c9790536fe189f57bd0d107cf2689 (diff) | |
| download | brew-bab29bab721860a6f3fee4cc0f546764cda5ce87.tar.bz2 | |
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 <jacknagel@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 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 |
