aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-11-02 11:33:40 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-11-02 11:33:42 -0700
commitec836a6e2b77a91310a37efe2dce4c089def7fbd (patch)
tree92ef9bc37cf9257d7199e9c7699c663337a6e46f /python/fatcat_web
parent2137be14556a604a06e8b54bbc22d68f7d3cd695 (diff)
downloadfatcat-ec836a6e2b77a91310a37efe2dce4c089def7fbd.tar.gz
fatcat-ec836a6e2b77a91310a37efe2dce4c089def7fbd.zip
web: improve git version generation
This shouldn't change behavior on `master` branch, but in some cases (unsigned / no-message tags), should display better short version names in the footer.
Diffstat (limited to 'python/fatcat_web')
-rw-r--r--python/fatcat_web/web_config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_web/web_config.py b/python/fatcat_web/web_config.py
index f48a7b60..b0a50e0f 100644
--- a/python/fatcat_web/web_config.py
+++ b/python/fatcat_web/web_config.py
@@ -16,7 +16,7 @@ import subprocess
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
- GIT_REVISION = subprocess.check_output(["git", "describe", "--always"]).strip().decode('utf-8')
+ GIT_REVISION = subprocess.check_output(["git", "describe", "--tags", "--long", "--always"]).strip().decode('utf-8')
# This is, effectively, the QA/PROD flag
FATCAT_DOMAIN = os.environ.get("FATCAT_DOMAIN", default="dev.fatcat.wiki")