Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

Hide 'git --version' output

Steve Rowe532d07f1f599
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'):