Handle any extra parameters to _fetch

This commit is contained in:
László Károlyi 2022-09-01 17:30:58 +02:00 committed by Marvin Pohl
parent 5524f5f53d
commit a6754fadba

View File

@ -15,8 +15,8 @@ class Gitea(Git):
the Gitea webhook
"""
@defer.inlineCallbacks
def _fetch(self, arg):
res = yield super(Gitea, self)._fetch(arg)
def _fetch(self, *args, **kwargs):
res = yield super(Gitea, self)._fetch(*args, **kwargs)
if self.build.hasProperty("pr_id"):
remote = yield self._dovccmd(
['config', 'remote.pr_source.url'], collectStdout=True, abandonOnFailure=False)