Rename snake_case variable

This commit is contained in:
Tim Hockin 2019-10-27 20:44:49 -07:00
parent 4905dc62a5
commit f433b067ca
1 changed files with 3 additions and 3 deletions

View File

@ -476,11 +476,11 @@ func addWorktreeAndSwap(ctx context.Context, gitRoot, dest, branch, rev string,
// Update submodules // Update submodules
// NOTICE: it works for repo with or without submodules // NOTICE: it works for repo with or without submodules
submodules_args := []string{"submodule", "update", "--init", "--recursive"} submodulesArgs := []string{"submodule", "update", "--init", "--recursive"}
if depth != 0 { if depth != 0 {
submodules_args = append(submodules_args, "--depth", strconv.Itoa(depth)) submodulesArgs = append(submodulesArgs, "--depth", strconv.Itoa(depth))
} }
_, err = runCommand(ctx, worktreePath, *flGitCmd, submodules_args...) _, err = runCommand(ctx, worktreePath, *flGitCmd, submodulesArgs...)
if err != nil { if err != nil {
return err return err
} }