Commit ccca2a17 authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil

controllers/admin.py: show git sha1 as in algo and in client

Fixes #1847.
parent 17d28ea8
Pipeline #2603 passed with stages
in 2 minutes and 29 seconds
......@@ -22,7 +22,7 @@ def index():
disk_use, err = p.communicate()
revision = 'not versioned'
try:
p = subprocess.Popen(["git", "rev-parse", "HEAD"], stdout=subprocess.PIPE)
p = subprocess.Popen(["git", "log", "-1", "--pretty=format:'%h (%cd)'", "--date=short", "--abbrev-commit"], stdout=subprocess.PIPE)
revision, err = p.communicate()
except:
pass
......
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 to comment