summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAgathe Porte <microjoe@microjoe.org>2020-06-14 07:53:35 +0200
committerAgathe Porte <microjoe@microjoe.org>2020-06-14 07:53:35 +0200
commitc9807e45d86ef872c236172cacb4218364911a48 (patch)
tree57c7f0458bfa6a508ae9f01d3f04c4f2b3c6a1e0
parent30ca39107d22a62e94647504ea02b5cc0f205730 (diff)
downloadpelican-git-describe-c9807e45d86ef872c236172cacb4218364911a48.tar.gz
pelican-git-describe-c9807e45d86ef872c236172cacb4218364911a48.zip
strip git describe output
-rw-r--r--__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/__init__.py b/__init__.py
index 12de13f..80b09f4 100644
--- a/__init__.py
+++ b/__init__.py
@@ -16,7 +16,7 @@ class GitDescribe:
"""Check and return git describe value."""
result = subprocess.run(["git", "describe", "--tags"],
stdout=subprocess.PIPE, check=True)
- return result.stdout.decode('utf-8')
+ return result.stdout.decode('utf-8').strip()
def initialize(gen):