Skip to content

Commit 6ae80f9

Browse files
ChristopherHXlunny
andauthored
Update modules/git/command.go
Co-authored-by: Lunny Xiao <[email protected]>
1 parent bafd8ec commit 6ae80f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/git/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ func (c *Command) run(ctx context.Context, skip int, opts *RunOpts) error {
331331

332332
startTime := time.Now()
333333

334-
cmd := exec.CommandContext(ctx, c.prog, append(append([]string{}, c.configArgs...), c.args...)...)
334+
cmd := exec.CommandContext(ctx, c.prog, append(c.configArgs, c.args...)...)
335335
c.cmd = cmd // for debug purpose only
336336
if opts.Env == nil {
337337
cmd.Env = os.Environ()

0 commit comments

Comments
 (0)