Commit 52a1f5b1 by Őry Máté

django: git describe instead of rev-parse

parent 61866db1
...@@ -268,7 +268,7 @@ CLOUD_URL = 'https://cloud.ik.bme.hu/' ...@@ -268,7 +268,7 @@ CLOUD_URL = 'https://cloud.ik.bme.hu/'
try: try:
os.chdir('/opt/webadmin/cloud/') os.chdir('/opt/webadmin/cloud/')
RELEASE = subprocess.check_output( RELEASE = subprocess.check_output(
['/usr/bin/git', 'rev-parse', '--symbolic-full-name', '--abbrev-ref', 'HEAD']) ['/usr/bin/git', 'describe', '--tags', '--abbrev=4'])
except: except:
RELEASE = 'n/a' RELEASE = 'n/a'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment