diff options
author | Santiago M. Mola <santi@mola.io> | 2017-07-07 10:26:56 +0200 |
---|---|---|
committer | Santiago M. Mola <santi@mola.io> | 2017-07-07 10:26:56 +0200 |
commit | 22d8c7082f547acdc245fd836c1962583c0c87a1 (patch) | |
tree | b00353805dbded09f585e31508e20698cf7ad196 /plumbing/transport/file/server_test.go | |
parent | 102d4b5aeb9b3cbd544c59706a1b0dd9300ddcc8 (diff) | |
download | go-git-22d8c7082f547acdc245fd836c1962583c0c87a1.tar.gz |
transport/internal: read only first error line
We only use the first line of error output. So we use a channel with
a single byte buffer and read the first line from stderr. Further
output is discarded, as well as any further I/O error, which might
be expected when closing the pipe (command finished).
Diffstat (limited to 'plumbing/transport/file/server_test.go')
0 files changed, 0 insertions, 0 deletions