From 164e7259d7febd5f1a58b1b537739aa26e9be3f2 Mon Sep 17 00:00:00 2001 From: James Fargher Date: Mon, 21 Mar 2022 16:29:33 +1300 Subject: gitaly-git2go: Stop capturing errors from stderr Soon we will use stderr to output logging. We should not try to interpret these logs as an error message. --- internal/git2go/executor.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'internal/git2go') diff --git a/internal/git2go/executor.go b/internal/git2go/executor.go index 35b62b682..681024d28 100644 --- a/internal/git2go/executor.go +++ b/internal/git2go/executor.go @@ -59,9 +59,6 @@ func (b *Executor) run(ctx context.Context, repo repository.GitRepo, stdin io.Re } if err := cmd.Wait(); err != nil { - if _, ok := err.(*exec.ExitError); ok { - return nil, fmt.Errorf("%s", stderr.String()) - } return nil, err } -- cgit v1.2.3