From aff108d7fc500bbfa901e51e81246b561025f5a4 Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Tue, 4 Aug 2020 22:30:17 +0200 Subject: [PATCH] Allow using non-annotated tags for version --- src/newsreader/conf/version.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/newsreader/conf/version.py b/src/newsreader/conf/version.py index d91d770..f8b4c8d 100644 --- a/src/newsreader/conf/version.py +++ b/src/newsreader/conf/version.py @@ -7,7 +7,9 @@ def get_current_version(): return os.environ["VERSION"] try: - output = subprocess.check_output(["git", "describe"], universal_newlines=True) + output = subprocess.check_output( + ["git", "describe", "--tags"], universal_newlines=True + ) return output.strip() except (subprocess.CalledProcessError, OSError): return ""