Allow git config to fail if the pr_source remote is not yet initialized.
This commit is contained in:
parent
b17a60beff
commit
e0dc125ddd
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user