Check if we are actually the repo for the specified build when PR info is in the request
This commit is contained in:
parent
8decb35652
commit
de9d594758
|
@ -17,7 +17,7 @@ class Gitea(Git):
|
|||
@defer.inlineCallbacks
|
||||
def _fetch(self, arg):
|
||||
res = yield super(Gitea, self)._fetch(arg)
|
||||
if self.build.hasProperty("pr_id"):
|
||||
if self.build.hasProperty("pr_id") and self.repourl == self.build.getProperty("base_git_ssh_url", None):
|
||||
remote = yield self._dovccmd(
|
||||
['config', 'remote.pr_source.url'], collectStdout=True, abandonOnFailure=False)
|
||||
if remote is None or remote.strip() is '':
|
||||
|
|
Loading…
Reference in New Issue
Block a user