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:
Mike McQuaid 2021-01-06 08:51:11 +00:00
parent d278e87d57
commit a1c97c8f3b
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -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