From 1d59adf68f360f9baaf6e1129bf742f642084b6f Mon Sep 17 00:00:00 2001
From: Andreas <andreasv@fsmpi.rwth-aachen.de>
Date: Fri, 7 Apr 2017 04:06:14 +0200
Subject: [PATCH] always show git commit

---
 server.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/server.py b/server.py
index 28be552..555fbde 100644
--- a/server.py
+++ b/server.py
@@ -54,9 +54,10 @@ if sys.argv[0].endswith('run.py'):
 config.from_pyfile('config.py', silent=True)
 if config['DEBUG']:
 	app.jinja_env.auto_reload = True
-	# get git commit
-	import subprocess
-	app.jinja_env.globals['gitversion'] = subprocess.check_output(['git', "log", "-g", "-1", "--pretty=%h # %d # %s"]).decode('UTF-8').split('#')
+
+# get git commit
+import subprocess
+app.jinja_env.globals['gitversion'] = subprocess.check_output(['git', "log", "-g", "-1", "--pretty=%h # %d # %s"]).decode('UTF-8').split('#')
 
 if not config.get('SECRET_KEY', None):
 	config['SECRET_KEY'] = os.urandom(24)
-- 
GitLab