From d263429c6d5ec4c2ea87b91e125a4a35f0d1a43d Mon Sep 17 00:00:00 2001 From: Michal Lula Date: Fri, 18 Oct 2019 17:50:04 +0200 Subject: [PATCH] :art: add todo comment for --depth flag support --- cmd/git-sync/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/git-sync/main.go b/cmd/git-sync/main.go index 959044f..e40258d 100644 --- a/cmd/git-sync/main.go +++ b/cmd/git-sync/main.go @@ -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