From 672ff9c87dad8d21d46c65e289cd0da34effb997 Mon Sep 17 00:00:00 2001 From: Loic Baron Date: Wed, 13 May 2015 11:49:40 +0200 Subject: [PATCH] portal_version without hash --- myslice/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/myslice/settings.py b/myslice/settings.py index 0caee25f..b01b5653 100644 --- a/myslice/settings.py +++ b/myslice/settings.py @@ -31,7 +31,8 @@ except: if not config.myslice.portal_version: try: - PORTAL_VERSION = subprocess.check_output(["git", "--git-dir", ROOT + "/.git", "describe"]) + v = subprocess.check_output(["git", "--git-dir", ROOT + "/.git", "describe"]) + PORTAL_VERSION = '-'.join(v.split('-')[:-1]) except: PORTAL_VERSION = 'not using git' -- 2.43.0