Skip to content

Commit 147a5f5

Browse files
authored
Merge pull request #206 from thockin/cleanups
Rename snake_case variable
2 parents e394e55 + f433b06 commit 147a5f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/git-sync/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,11 +476,11 @@ func addWorktreeAndSwap(ctx context.Context, gitRoot, dest, branch, rev string,
476476

477477
// Update submodules
478478
// NOTICE: it works for repo with or without submodules
479-
submodules_args := []string{"submodule", "update", "--init", "--recursive"}
479+
submodulesArgs := []string{"submodule", "update", "--init", "--recursive"}
480480
if depth != 0 {
481-
submodules_args = append(submodules_args, "--depth", strconv.Itoa(depth))
481+
submodulesArgs = append(submodulesArgs, "--depth", strconv.Itoa(depth))
482482
}
483-
_, err = runCommand(ctx, worktreePath, *flGitCmd, submodules_args...)
483+
_, err = runCommand(ctx, worktreePath, *flGitCmd, submodulesArgs...)
484484
if err != nil {
485485
return err
486486
}

0 commit comments

Comments
 (0)