portal_version without hash
authorLoic Baron <loic.baron@lip6.fr>
Wed, 13 May 2015 09:49:40 +0000 (11:49 +0200)
committerLoic Baron <loic.baron@lip6.fr>
Wed, 13 May 2015 09:49:40 +0000 (11:49 +0200)
myslice/settings.py

index 0caee25..b01b565 100644 (file)
@@ -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'