Skip to content
Snippets Groups Projects
Commit 37003acb authored by Andreas Valder's avatar Andreas Valder
Browse files

fixed git msg again

parent daf78a6f
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@ if config['DEBUG']:
# get git commit
import subprocess
output = subprocess.check_output(['git', "log", "-g", "-1", "--pretty=%H # %h # %d # %s"]).decode('UTF-8').split('#', 4)
output = subprocess.check_output(['git', "log", "-g", "-1", "--pretty=%H # %h # %d # %s"]).decode('UTF-8').split('#', 3)
app.jinja_env.globals['gitversion'] = { 'hash': output[1], 'longhash': output[0], 'branch': output[2], 'msg': output[3] }
if not config.get('SECRET_KEY', None):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment