From c91bbe787b365d0d7fb9813d7b8c062458442f03 Mon Sep 17 00:00:00 2001 From: erik Date: Wed, 22 Feb 2023 16:20:46 +0100 Subject: [PATCH] Create string from return value stdout returns a list of strings. This needed to be handled. --- git_repository.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git_repository.py b/git_repository.py index 0622e9f..4fdfc64 100644 --- a/git_repository.py +++ b/git_repository.py @@ -17,8 +17,8 @@ class GitRepository(): return inst def get_latest_commit(self): - self.system_repository.run_checked('git', 'log', '--oneline', '--format="%s %b"', '-n' + '1') - self.latest_commit = self.system_repository.stdout + self.system_repository.run_checked('git', 'log', '--oneline', '--format="%s %b"', '-n 1') + self.latest_commit = " ".join(self.system_repository.stdout) # returns a list of strings otherwise def get_release_type_from_latest_commit(self): if self.latest_commit is None: