diff --git a/server.py b/server.py index 28be5520a81f1d29d22185bee438868943f7a71e..555fbdeb0e52d88bb4d10cd394c2be31e9891640 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)