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
1 changed files with 2 additions and 1 deletions

View File

@ -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(