Skip to content

gitserver: limit size of stderr rather than truncate

Administrator requested to merge core/gitserver-stderr into master

Created by: keegancsmith

We only look at the first 1024 bytes of stderr. However, we buffer the whole of stderr into a bytes.Buffer first, and then truncate it. This commit instead implements a limitWriter (like an io.LimitReader) which discards all writes after 1024 bytes.

Merge request reports

Loading