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)