Fix GIT_REV on dokku
[relay.git/.git] / relay / nodeinfo.py
index 5556e14..11e7f39 100644 (file)
@@ -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 = {