From a6754fadba83407871d276839aabb00ec018f092 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20K=C3=A1rolyi?= Date: Thu, 1 Sep 2022 17:30:58 +0200 Subject: [PATCH] Handle any extra parameters to _fetch --- buildbot_gitea/step_source.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/buildbot_gitea/step_source.py b/buildbot_gitea/step_source.py index dfb6b25..0ead578 100644 --- a/buildbot_gitea/step_source.py +++ b/buildbot_gitea/step_source.py @@ -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) @@ -30,4 +30,4 @@ class Gitea(Git): self.build.getProperty("head_git_ssh_url", None)]) yield self._dovccmd(['fetch', 'pr_source']) res = yield self._dovccmd(['merge', self.build.getProperty("head_sha", None)]) - defer.returnValue(res) \ No newline at end of file + defer.returnValue(res)