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)