From 889faa776c3f9e80ffa24a879c2eec7897512c86 Mon Sep 17 00:00:00 2001 From: pluja Date: Thu, 5 Nov 2020 19:29:01 +0100 Subject: [PATCH] Use abbrev for verion (#130) --- app/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: