aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2012-10-15 00:53:15 -0500
committerJack Nagel2012-10-15 15:29:23 -0500
commita0e575e5b63193f3af6f1a45cc7a47f006f5779b (patch)
tree2c350cfcf3dcaa1da40c7a3c9d058037c4fed48a /Library/Homebrew
parentbbfb6400c77aeaaf88216263d86491d85a40f8a9 (diff)
downloadbrew-a0e575e5b63193f3af6f1a45cc7a47f006f5779b.tar.bz2
GitDownloadStrategy: silence status check
"git status -s" is used to detect if the repository was corrupted during an interrupted clone, but it can leak output to the terminal, so use quiet_system. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew')
-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 6271ff34c..17ee4e511 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -333,7 +333,7 @@ class GitDownloadStrategy < AbstractDownloadStrategy
if @clone.exist?
Dir.chdir(@clone) do
# Check for interupted clone from a previous install
- unless system @@git, 'status', '-s'
+ unless quiet_system @@git, 'status', '-s'
puts "Removing invalid .git repo from cache"
FileUtils.rm_rf @clone
end