From 112d5aeec235ac06f8877f4e1f8537f885437f4d Mon Sep 17 00:00:00 2001 From: Romain Porte Date: Sun, 14 Jun 2020 07:53:35 +0200 Subject: strip git describe output --- __init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v1.2.3