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>
This commit is contained in:
Jack Nagel 2012-10-15 00:53:15 -05:00
parent bbfb6400c7
commit a0e575e5b6

View File

@ -333,7 +333,7 @@ class GitDownloadStrategy < AbstractDownloadStrategy
if @clone.exist? if @clone.exist?
Dir.chdir(@clone) do Dir.chdir(@clone) do
# Check for interupted clone from a previous install # 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" puts "Removing invalid .git repo from cache"
FileUtils.rm_rf @clone FileUtils.rm_rf @clone
end end