https://reisub.nsupdate.info/git
/
relay.git
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix GIT_REV on dokku
[relay.git/.git]
/
relay
/
nodeinfo.py
diff --git
a/relay/nodeinfo.py
b/relay/nodeinfo.py
index
5556e14
..
11e7f39
100644
(file)
--- a/
relay/nodeinfo.py
+++ b/
relay/nodeinfo.py
@@
-1,3
+1,4
@@
+import os
import subprocess
import urllib.parse
@@
-10,7
+11,7
@@
from .database import DATABASE
try:
commit_label = subprocess.check_output(["git", "rev-parse", "HEAD"]).strip().decode('ascii')
except:
- commit_label =
'???'
+ commit_label =
os.environ.get('GIT_REV')
nodeinfo_template = {