Skip to content

Commit 96d6ae2

Browse files
zeripathGusted
andcommitted
Update modules/git/utils_closererror.go
Co-authored-by: Gusted <williamzijl7@hotmail.com>
1 parent e7eca1d commit 96d6ae2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/git/utils_closererror.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ func (c *closerError) CloseWithError(err error) error {
2424
if c.Closer != nil {
2525
_ = c.Closer.Close()
2626
}
27-
c.err = err
27+
if err == nil {
28+
err = io.ErrClosedPipe
29+
}
30+
c.err = err
2831
return nil
2932
}
3033

0 commit comments

Comments
 (0)