From c9807e45d86ef872c236172cacb4218364911a48 Mon Sep 17 00:00:00 2001 From: Agathe 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