Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Video AG Infrastruktur
website
Commits
61ea6463
Commit
61ea6463
authored
Apr 23, 2017
by
Andreas Valder
Browse files
fixed display of git commit msg
parent
7ff01df0
Changes
1
Hide whitespace changes
Inline
Side-by-side
server.py
View file @
61ea6463
...
...
@@ -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
(
'#'
)
output
=
subprocess
.
check_output
([
'git'
,
"log"
,
"-g"
,
"-1"
,
"--pretty=%H # %h # %d # %s"
]).
decode
(
'UTF-8'
).
split
(
'#'
,
4
)
app
.
jinja_env
.
globals
[
'gitversion'
]
=
{
'hash'
:
output
[
1
],
'longhash'
:
output
[
0
],
'branch'
:
output
[
2
],
'msg'
:
output
[
3
]
}
if
not
config
.
get
(
'SECRET_KEY'
,
None
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment