From 48f3cce16da2dd09720b18bb25f666696afb407b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Alix?= Date: Mon, 5 Oct 2026 10:08:01 +0200 Subject: [PATCH] [FIX] odoo_repository: enable 'filter=tree:0' on remotes added --- odoo_repository/lib/scanner.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/odoo_repository/lib/scanner.py b/odoo_repository/lib/scanner.py index 9bdeaff..5425ac3 100644 --- a/odoo_repository/lib/scanner.py +++ b/odoo_repository/lib/scanner.py @@ -537,6 +537,11 @@ def sync(self, fetch=True): if self.is_cloned and self.new_repo_name and self.new_repo_url: with self.repo() as repo: self._set_git_remote_url(repo, self.new_repo_name, self.new_repo_url) + # Also enable the partialclonefilter option as the initial remote + with repo.config_writer() as writer: + writer.set_value( + f"remote.{self.new_repo_name}", "partialclonefilter", "tree:0" + ) return res def scan(self, addons_path=".", target_addons_path=".", module_names=None):