git://git.onelab.eu
/
myslice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed GUI
[myslice.git]
/
myslice
/
settings.py
diff --git
a/myslice/settings.py
b/myslice/settings.py
index
0e0bf37
..
b01b565
100644
(file)
--- a/
myslice/settings.py
+++ b/
myslice/settings.py
@@
-31,7
+31,8
@@
except:
if not config.myslice.portal_version:
try:
if not config.myslice.portal_version:
try:
- PORTAL_VERSION = subprocess.check_output(["git", "describe"])
+ v = subprocess.check_output(["git", "--git-dir", ROOT + "/.git", "describe"])
+ PORTAL_VERSION = '-'.join(v.split('-')[:-1])
except:
PORTAL_VERSION = 'not using git'
except:
PORTAL_VERSION = 'not using git'