Merge "Check for git before querying it for a version"

This commit is contained in:
Jenkins 2014-06-30 17:34:07 +00:00 committed by Gerrit Code Review
commit e1b98f578a
1 changed files with 1 additions and 1 deletions

View File

@ -807,7 +807,7 @@ def _get_version_from_git(pre_version):
"""
git_dir = _get_git_directory()
if git_dir:
if git_dir and _git_is_installed():
if pre_version:
try:
return _run_git_command(