From ec836a6e2b77a91310a37efe2dce4c089def7fbd Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 2 Nov 2021 11:33:40 -0700 Subject: 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. --- python/fatcat_web/web_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/fatcat_web') 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") -- cgit v1.2.3