From 96acc4e5cfb84a181874007074b956763db347bb Mon Sep 17 00:00:00 2001 From: Robin Rosenberg Date: Mon, 23 Jan 2012 00:57:39 +0100 Subject: [PATCH] Really close output stream when core.autocrlf is true Change-Id: I8a0d91e908145168c32589600bd1598826511ae3 --- .../src/org/eclipse/jgit/util/io/AutoCRLFOutputStream.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/io/AutoCRLFOutputStream.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/io/AutoCRLFOutputStream.java index a4c1573909..fe073d83b1 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/util/io/AutoCRLFOutputStream.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/io/AutoCRLFOutputStream.java @@ -177,11 +177,12 @@ public class AutoCRLFOutputStream extends OutputStream { if (binbufcnt < binbuf.length) decideMode(); buf = -1; + out.flush(); } @Override public void close() throws IOException { flush(); - super.close(); + out.close(); } } -- 2.39.5