diff --git a/app/routes.py b/app/routes.py index 6b7b05b..9bd5d16 100644 --- a/app/routes.py +++ b/app/routes.py @@ -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: