Skip to content

Commit 390dbf8

Browse files
committed
revert change from command.go
1 parent 3ff5d22 commit 390dbf8

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

modules/git/repo.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,8 @@ func CloneWithArgs(ctx context.Context, from, to string, args []string, opts Clo
147147
opts.Timeout = -1
148148
}
149149

150-
var stderr = new(bytes.Buffer)
151-
err = cmd.RunWithContext(&RunContext{
152-
Timeout: opts.Timeout,
153-
Stdout: new(bytes.Buffer),
154-
Stderr: stderr,
155-
})
156-
return ConcatenateError(err, stderr.String())
150+
_, err = cmd.RunTimeout(opts.Timeout)
151+
return err
157152
}
158153

159154
// PullRemoteOptions options when pull from remote

0 commit comments

Comments
 (0)