From f433b067ca3fed6a6cada89e08384dcc328778b1 Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Sun, 27 Oct 2019 20:44:49 -0700 Subject: [PATCH] Rename snake_case variable --- cmd/git-sync/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/git-sync/main.go b/cmd/git-sync/main.go index 8236e87..4556bec 100644 --- a/cmd/git-sync/main.go +++ b/cmd/git-sync/main.go @@ -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 }