From d77686cad907d524385a872058516e38b44e83b8 Mon Sep 17 00:00:00 2001 From: Steve Rowe Date: Mon, 23 May 2016 16:28:35 -0400 Subject: [PATCH] Hide 'git --version' output --- dev-tools/scripts/buildAndPushRelease.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-tools/scripts/buildAndPushRelease.py b/dev-tools/scripts/buildAndPushRelease.py index 155f14fd961..4bcef812537 100644 --- a/dev-tools/scripts/buildAndPushRelease.py +++ b/dev-tools/scripts/buildAndPushRelease.py @@ -215,7 +215,7 @@ def parse_config(): return config def check_cmdline_tools(): # Fail fast if there are cmdline tool problems - if os.system('git --version'): + if os.system('git --version >/dev/null 2>/dev/null'): raise RuntimeError('"git --version" returned a non-zero exit code.') antVersion = os.popen('ant -version').read().strip() if not antVersion.startswith('Apache Ant(TM) version 1.8'):