🎨 add todo comment for --depth flag support

This commit is contained in:
Michal Lula 2019-10-18 17:50:04 +02:00
parent 41c8572ad6
commit d263429c6d
1 changed files with 3 additions and 0 deletions

View File

@ -454,6 +454,9 @@ func addWorktreeAndSwap(ctx context.Context, gitRoot, dest, branch, rev string,
// Update submodules
// NOTICE: it works for repos with or without submodules
// TODO: add --depth flag support
// possible bug in git: git fetches full submodule history even with --depth flag is provided
// (tested with git version 2.23.0 on Mac)
_, err = runCommand(ctx, worktreePath, *flGitCmd, "submodule", "update", "--init", "--recursive")
if err != nil {
return err