GitDownloadStrategy: silence checkout actions in non-verbose mode
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
a0e575e5b6
commit
799c164cd9
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user