Allow git config to fail if the pr_source remote is not yet initialized.

This commit is contained in:
Marvin Pohl 2021-01-16 15:39:05 +01:00
parent b17a60beff
commit e0dc125ddd

View File

@ -19,7 +19,7 @@ class Gitea(Git):
res = yield super(Gitea, self)._fetch(arg) res = yield super(Gitea, self)._fetch(arg)
if self.build.hasProperty("pr_id"): if self.build.hasProperty("pr_id"):
remote = yield self._dovccmd( remote = yield self._dovccmd(
['config', 'remote.pr_source.url'], collectStdout=True) ['config', 'remote.pr_source.url'], collectStdout=True, abandonOnFailure=False)
if remote is None or remote.strip() is '': if remote is None or remote.strip() is '':
yield self._dovccmd( yield self._dovccmd(
['remote', 'add', 'pr_source', ['remote', 'add', 'pr_source',