diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-02 11:33:40 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-02 11:33:42 -0700 |
commit | ec836a6e2b77a91310a37efe2dce4c089def7fbd (patch) | |
tree | 92ef9bc37cf9257d7199e9c7699c663337a6e46f /python | |
parent | 2137be14556a604a06e8b54bbc22d68f7d3cd695 (diff) | |
download | fatcat-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')
-rw-r--r-- | python/fatcat_web/web_config.py | 2 |
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") |