diff options
author | Romain Porte <microjoe@microjoe.org> | 2019-05-09 20:07:44 +0200 |
---|---|---|
committer | Romain Porte <microjoe@microjoe.org> | 2019-05-09 20:08:48 +0200 |
commit | 5d8f7128b89aef9930c796db9109b197815eed80 (patch) | |
tree | 012bb9ffc229376963a7addf56c3b3ddccf36c6e | |
parent | b4dcf2503c524ee2bba2fca56e2f1ca9612d64ed (diff) | |
download | pelican-git-describe-5d8f7128b89aef9930c796db9109b197815eed80.tar.gz pelican-git-describe-5d8f7128b89aef9930c796db9109b197815eed80.zip |
use "git describe --tags" for lightweight tags
-rw-r--r-- | __init__.py | 4 |
1 files 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') |