From 3357b5b0fb5f141496bf261696f525953128ab50 Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Thu, 25 Jan 2024 08:38:25 +0100 Subject: [PATCH] [FIX] runbot: fix prepare --- runbot/models/batch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot/models/batch.py b/runbot/models/batch.py index 5e965570..5cf031a2 100644 --- a/runbot/models/batch.py +++ b/runbot/models/batch.py @@ -258,7 +258,7 @@ class Batch(models.Model): foreign_bundles = bundle.search([('name', '=', bundle.name), ('project_id', 'in', foreign_projects.ids)]) used_branches = _fill_missing({branch: branch.head for branch in foreign_bundles.mapped('branch_ids').sorted('is_pr', reverse=True)}, 'head') if used_branches: - commits = ', '.join([f'[{branch.repo_id.name}]({branch.bundle_id.name})' for branch in used_branches]) + commits = ', '.join([f'[{branch.remote_id.repo_id.name}]({branch.bundle_id.name})' for branch in used_branches]) self._log(f'Found {len(used_branches)} commits in foreigh repo: {commits}') batch = self.base_reference_batch_id