From a0e575e5b63193f3af6f1a45cc7a47f006f5779b Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 15 Oct 2012 00:53:15 -0500 Subject: [PATCH] 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 --- Library/Homebrew/download_strategy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 6271ff34cd..17ee4e511f 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