gitserver: limit size of stderr rather than truncate
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.