Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Rosenberg2012-01-22 23:57:39 +0000
committerRobin Rosenberg2012-01-22 23:57:39 +0000
commit96acc4e5cfb84a181874007074b956763db347bb (patch)
tree2ad1af6090ea0280d3811ae81cc8de20f08823f5 /org.eclipse.jgit
parent3fa054bcf7ff60fdf2ec6f48728a1d6b52a8c14e (diff)
downloadjgit-96acc4e5cfb84a181874007074b956763db347bb.tar.gz
jgit-96acc4e5cfb84a181874007074b956763db347bb.tar.xz
jgit-96acc4e5cfb84a181874007074b956763db347bb.zip
Really close output stream when core.autocrlf is true
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/util/io/AutoCRLFOutputStream.java3
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();
}
}

Back to the top