msys at least breaks elsewhere now

This commit is contained in:
lady ada 2022-04-08 16:39:47 -04:00
parent 1f5744377c
commit ea3dfa444a

View File

@ -22,13 +22,14 @@ def get_version_info_from_git():
[tools_describe], [tools_describe],
stderr=subprocess.STDOUT, stderr=subprocess.STDOUT,
universal_newlines=True, universal_newlines=True,
shell=True
).strip() ).strip()
except subprocess.CalledProcessError as er: except subprocess.CalledProcessError as er:
if er.returncode == 128: if er.returncode == 128:
# git exit code of 128 means no repository found # git exit code of 128 means no repository found
return None return None
git_tag = "" git_tag = ""
except OSError: except OSError as e:
return None return None
try: try:
git_hash = subprocess.check_output( git_hash = subprocess.check_output(