diff options
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/transport')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java index a65d0b756c..c9a48bf0e3 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java @@ -106,6 +106,7 @@ import org.eclipse.jgit.util.StringUtils; import org.eclipse.jgit.util.SystemReader; import org.eclipse.jgit.util.TemporaryBuffer; import org.eclipse.jgit.util.io.DisabledOutputStream; +import org.eclipse.jgit.util.io.SilentInputStream; import org.eclipse.jgit.util.io.UnionInputStream; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -1558,7 +1559,8 @@ public class TransportHttp extends HttpTransport implements WalkTransport, throws TransportException { svc = new MultiRequestService(SVC_UPLOAD_PACK, getProtocolVersion()); - try (InputStream svcIn = svc.getInputStream(); + try (InputStream svcIn = new SilentInputStream( + svc.getInputStream()); OutputStream svcOut = svc.getOutputStream()) { init(svcIn, svcOut); super.doFetch(monitor, want, have, outputStream); |