portal_version working with apache
authorLoic Baron <loic.baron@lip6.fr>
Wed, 13 May 2015 09:42:28 +0000 (11:42 +0200)
committerLoic Baron <loic.baron@lip6.fr>
Wed, 13 May 2015 09:42:28 +0000 (11:42 +0200)
myslice/settings.py

index 0e0bf37..0caee25 100644 (file)
@@ -31,7 +31,7 @@ except:
 
 if not config.myslice.portal_version:
     try:
-        PORTAL_VERSION = subprocess.check_output(["git", "describe"])
+        PORTAL_VERSION = subprocess.check_output(["git", "--git-dir", ROOT + "/.git", "describe"])
     except:
         PORTAL_VERSION = 'not using git'