From 30ca39107d22a62e94647504ea02b5cc0f205730 Mon Sep 17 00:00:00 2001 From: Agathe Porte Date: Thu, 9 May 2019 20:07:44 +0200 Subject: use "git describe --tags" for lightweight tags --- __init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index b4e5a4a..12de13f 100644 --- a/__init__.py +++ b/__init__.py @@ -14,8 +14,8 @@ class GitDescribe: def defer_process(self): """Check and return git describe value.""" - result = subprocess.run(["git", "describe"], stdout=subprocess.PIPE, - check=True) + result = subprocess.run(["git", "describe", "--tags"], + stdout=subprocess.PIPE, check=True) return result.stdout.decode('utf-8') -- cgit v1.2.3