msys at least breaks elsewhere now
This commit is contained in:
parent
1f5744377c
commit
ea3dfa444a
@ -22,13 +22,14 @@ def get_version_info_from_git():
|
||||
[tools_describe],
|
||||
stderr=subprocess.STDOUT,
|
||||
universal_newlines=True,
|
||||
shell=True
|
||||
).strip()
|
||||
except subprocess.CalledProcessError as er:
|
||||
if er.returncode == 128:
|
||||
# git exit code of 128 means no repository found
|
||||
return None
|
||||
git_tag = ""
|
||||
except OSError:
|
||||
except OSError as e:
|
||||
return None
|
||||
try:
|
||||
git_hash = subprocess.check_output(
|
||||
|
Loading…
Reference in New Issue
Block a user