utils/git: quieter git --version.
Let's avoid printing this unless `--debug` (to avoid `brew bundle check -v` outputting this). Fixes https://github.com/Homebrew/homebrew-bundle/issues/865
This commit is contained in:
parent
d278e87d57
commit
a1c97c8f3b
@ -16,7 +16,7 @@ module Utils
|
||||
def version
|
||||
return @version if defined?(@version)
|
||||
|
||||
stdout, _, status = system_command(git, args: ["--version"], print_stderr: false)
|
||||
stdout, _, status = system_command(git, args: ["--version"], verbose: false, print_stderr: false)
|
||||
@version = status.success? ? stdout.chomp[/git version (\d+(?:\.\d+)*)/, 1] : nil
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user