diff options
author | Agathe Porte <microjoe@microjoe.org> | 2020-06-14 07:53:35 +0200 |
---|---|---|
committer | Agathe Porte <microjoe@microjoe.org> | 2020-06-14 07:53:35 +0200 |
commit | c9807e45d86ef872c236172cacb4218364911a48 (patch) | |
tree | 57c7f0458bfa6a508ae9f01d3f04c4f2b3c6a1e0 | |
parent | 30ca39107d22a62e94647504ea02b5cc0f205730 (diff) | |
download | pelican-git-describe-c9807e45d86ef872c236172cacb4218364911a48.tar.gz pelican-git-describe-c9807e45d86ef872c236172cacb4218364911a48.zip |
strip git describe output
-rw-r--r-- | __init__.py | 2 |
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): |