diff options
author | Robin Rosenberg <robin.rosenberg@dewire.com> | 2012-01-23 00:57:39 +0100 |
---|---|---|
committer | Robin Rosenberg <robin.rosenberg@dewire.com> | 2012-01-23 00:57:39 +0100 |
commit | 96acc4e5cfb84a181874007074b956763db347bb (patch) | |
tree | 2ad1af6090ea0280d3811ae81cc8de20f08823f5 | |
parent | 3fa054bcf7ff60fdf2ec6f48728a1d6b52a8c14e (diff) | |
download | jgit-96acc4e5cfb84a181874007074b956763db347bb.tar.gz jgit-96acc4e5cfb84a181874007074b956763db347bb.zip |
Really close output stream when core.autocrlf is true
Change-Id: I8a0d91e908145168c32589600bd1598826511ae3
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/util/io/AutoCRLFOutputStream.java | 3 |
1 files changed, 2 insertions, 1 deletions
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(); } } |