diff options
| author | Romain Porte <microjoe@microjoe.org> | 2020-06-14 07:53:35 +0200 | 
|---|---|---|
| committer | Romain Porte <microjoe@microjoe.org> | 2020-06-14 07:53:35 +0200 | 
| commit | 112d5aeec235ac06f8877f4e1f8537f885437f4d (patch) | |
| tree | 57c7f0458bfa6a508ae9f01d3f04c4f2b3c6a1e0 | |
| parent | 5d8f7128b89aef9930c796db9109b197815eed80 (diff) | |
| download | pelican-git-describe-112d5aeec235ac06f8877f4e1f8537f885437f4d.tar.gz pelican-git-describe-112d5aeec235ac06f8877f4e1f8537f885437f4d.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):  | 
