1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-21 11:27:38 +03:00

appversion 'DIRTY': Separator must be .

This commit is contained in:
Athanasius 2021-05-27 12:46:46 +01:00
parent e5699d3eec
commit efcf5dda2c

@ -96,7 +96,7 @@ def git_shorthash_from_head() -> str:
"""
Determine short hash for current git HEAD.
Includes +DIRTY if any changes have been made from HEAD
Includes `.DIRTY` if any changes have been made from HEAD
:return: str - None if we couldn't determine the short hash.
"""
@ -122,7 +122,7 @@ def git_shorthash_from_head() -> str:
with contextlib.suppress(Exception):
result = subprocess.run('git diff --stat HEAD'.split(), capture_output=True)
if len(result.stdout) > 0:
shorthash += '+DIRTY'
shorthash += '.DIRTY'
if len(result.stderr) > 0:
logger.warning(f'Data from git on stderr:\n{str(result.stderr)}')