[Diff][Added] Recursive submodules init for worktree
This commit is contained in:
parent
7a7beff556
commit
8d48519551
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue