Use abbrev for verion (#130)
This commit is contained in:
parent
e4e8754fc8
commit
889faa776c
@ -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:
|
||||
|
Reference in New Issue
Block a user