From 89762d1782d6376c87991a3d1629a56820ac2391 Mon Sep 17 00:00:00 2001 From: "Laurent Mignon (ACSONE)" Date: Thu, 13 Aug 2026 09:54:21 +0200 Subject: [PATCH] [FIX] odoo_repository: GitPython 3.1.59 compatibility GitPython 3.1.59, released on 2026-08-10, added '--separate-git-dir' to the list of unsafe options. Allow unsafe options on clone created with workaround_fs_errors=True since they are the only once using this option. --- odoo_repository/lib/scanner.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/odoo_repository/lib/scanner.py b/odoo_repository/lib/scanner.py index d06dfd67..742f88d0 100644 --- a/odoo_repository/lib/scanner.py +++ b/odoo_repository/lib/scanner.py @@ -247,6 +247,9 @@ def _clone(self): extra = {"env": git_env} if self.workaround_fs_errors: extra["separate_git_dir"] = str(tmp_git_dir_path) + # GitPython blocks '--separate-git-dir' since 3.1.59 + # We must allow unsafe options to be able to use it, + extra["allow_unsafe_options"] = True params = self._clone_params(**extra) try: git.Repo.clone_from(**params)