Use abbrev for verion (#130)

This commit is contained in:
pluja 2020-11-05 19:29:01 +01:00
parent e4e8754fc8
commit 889faa776c

View File

@ -783,7 +783,7 @@ def status():
tag=ver[2]
except:
try:
tag = str(subprocess.check_output(["git", "describe", "--tags"]).strip())[2:-1]
tag = str(subprocess.check_output(["git", "describe", "--tags", "--abbrev=0"]).strip())[2:-1]
hsh = str(subprocess.check_output(["git", "rev-parse", "--short", "HEAD"]).strip())[2:-1]
update = str(subprocess.check_output(["git", "log", "-1", "--format=%cd"]).strip())[2:-7]
except: