aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-10-15 00:55:57 -0500
committerJack Nagel2012-10-15 15:29:23 -0500
commitc9d54c1724fe447ee3174dd6b152f3901d0e6141 (patch)
tree08c42e531ee56defa7d1eda0d7a57022085f40a9 /Library
parent4100fc549d44f6c91addcce12401ede408f77ce3 (diff)
downloadhomebrew-c9d54c1724fe447ee3174dd6b152f3901d0e6141.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.rb2
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