Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
ccca2a17
Commit
ccca2a17
authored
May 23, 2017
by
Mathieu Giraud
Committed by
Vidjil
May 23, 2017
Browse files
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/controllers/admin.py
View file @
ccca2a17
...
...
@@ -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
...
...
Mathieu Giraud
@magiraud
mentioned in issue
#1847 (closed)
·
May 23, 2017
mentioned in issue
#1847 (closed)
mentioned in issue #1847
Toggle commit list
Write
Preview
Markdown
is supported
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