Skip to content

Commit 101ccac

Browse files
authored
fix: clone args used by custom command (#6206)
1 parent 3111b20 commit 101ccac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/commands/internal/builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func (b Builder) clone(ctx context.Context) error {
9292
//nolint:gosec // the variable is sanitized.
9393
cmd := exec.CommandContext(ctx,
9494
"git", "clone", "--branch", sanitizeVersion(b.cfg.Version),
95-
"--single-branch", "--depth", "1", "-c advice.detachedHead=false", "-q",
95+
"--single-branch", "--depth", "1", "-c", "advice.detachedHead=false", "-q",
9696
"https://github.com/golangci/golangci-lint.git",
9797
)
9898
cmd.Dir = b.root

0 commit comments

Comments
 (0)