From c14b864b06e938ca6d98802318ebafac12f5ac02 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Thu, 29 Nov 2018 16:31:38 +0100 Subject: [PATCH] [FIX] runbot: fix branch infos singleton --- runbot/models/branch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot/models/branch.py b/runbot/models/branch.py index 8ce4bb0b..583c82c1 100644 --- a/runbot/models/branch.py +++ b/runbot/models/branch.py @@ -38,7 +38,7 @@ class runbot_branch(models.Model): branch.branch_url = "https://%s/pull/%s" % (branch.repo_id.base, branch.branch_name) else: branch.branch_url = "https://%s/tree/%s" % (branch.repo_id.base, branch.branch_name) - pi = self._get_pull_info() + pi = branch._get_pull_info() if pi: branch.target_branch_name = pi['base']['ref'] if not _re_patch.match(pi['head']['label']):