Create string from return value
stdout returns a list of strings. This needed to be handled.
This commit is contained in:
parent
d759036989
commit
c91bbe787b
1 changed files with 2 additions and 2 deletions
|
@ -17,8 +17,8 @@ class GitRepository():
|
||||||
return inst
|
return inst
|
||||||
|
|
||||||
def get_latest_commit(self):
|
def get_latest_commit(self):
|
||||||
self.system_repository.run_checked('git', 'log', '--oneline', '--format="%s %b"', '-n' + '1')
|
self.system_repository.run_checked('git', 'log', '--oneline', '--format="%s %b"', '-n 1')
|
||||||
self.latest_commit = self.system_repository.stdout
|
self.latest_commit = " ".join(self.system_repository.stdout) # returns a list of strings otherwise
|
||||||
|
|
||||||
def get_release_type_from_latest_commit(self):
|
def get_release_type_from_latest_commit(self):
|
||||||
if self.latest_commit is None:
|
if self.latest_commit is None:
|
||||||
|
|
Loading…
Reference in a new issue