From 8d48519551a83f2e9cede5d66878b3551d55cb90 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Wed, 7 Jun 2023 09:43:14 -0300 Subject: [PATCH] [Diff][Added] Recursive submodules init for worktree --- kibot/out_diff.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kibot/out_diff.py b/kibot/out_diff.py index 3f8dd73b..50f83532 100644 --- a/kibot/out_diff.py +++ b/kibot/out_diff.py @@ -408,8 +408,7 @@ class DiffOptions(BaseOptions): logger.debug('Checking out '+name+' to '+git_tmp_wd) self.run_git(['worktree', 'add', git_tmp_wd, name]) self._worktrees_to_remove.append(git_tmp_wd) - self.run_git(['submodule', 'init'], cwd=git_tmp_wd) - self.run_git(['submodule', 'update'], cwd=git_tmp_wd) + self.run_git(['submodule', 'update', '--init', '--recursive'], cwd=git_tmp_wd) name_copy = self.run_git(['ls-files', '--full-name', self.file]) name_copy = os.path.join(git_tmp_wd, name_copy) logger.debug('- Using temporal copy: '+name_copy)