|
|
@@ -299,10 +299,11 @@ public class GitSmartHttpTools { |
|
|
|
|
|
|
|
private static void writeSideBand(OutputStream out, String textForGit) |
|
|
|
throws IOException { |
|
|
|
@SuppressWarnings("resource" /* java 7 */) |
|
|
|
OutputStream msg = new SideBandOutputStream(CH_ERROR, SMALL_BUF, out); |
|
|
|
msg.write(Constants.encode("error: " + textForGit)); |
|
|
|
msg.flush(); |
|
|
|
try (OutputStream msg = new SideBandOutputStream(CH_ERROR, SMALL_BUF, |
|
|
|
out)) { |
|
|
|
msg.write(Constants.encode("error: " + textForGit)); |
|
|
|
msg.flush(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private static void writePacket(PacketLineOut pckOut, String textForGit) |