GitDownloadStrategy: silence checkout actions in non-verbose mode

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-10-15 00:55:21 -05:00
parent a0e575e5b6
commit 799c164cd9

View File

@ -376,9 +376,9 @@ class GitDownloadStrategy < AbstractDownloadStrategy
ohai "Checking out #{@spec} #{@ref}"
case @spec
when :branch
nostdout { quiet_safe_system @@git, 'checkout', "origin/#{@ref}", '--' }
nostdout { quiet_safe_system @@git, 'checkout', { :quiet_flag => '-q' }, "origin/#{@ref}", '--' }
when :tag, :revision
nostdout { quiet_safe_system @@git, 'checkout', @ref, '--' }
nostdout { quiet_safe_system @@git, 'checkout', { :quiet_flag => '-q' }, @ref, '--' }
end
else
# otherwise the checkout-index won't checkout HEAD