Merge pull request #206 from thockin/cleanups

Rename snake_case variable
This commit is contained in:
Kubernetes Prow Robot 2019-11-21 14:31:30 -08:00 committed by GitHub
commit 147a5f5fff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
// 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 {
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 {
return err
}