Browse Source

Really close output stream when core.autocrlf is true

Change-Id: I8a0d91e908145168c32589600bd1598826511ae3
stable-1.3
Robin Rosenberg 13 years ago
parent
commit
96acc4e5cf
  1. 3
      org.eclipse.jgit/src/org/eclipse/jgit/util/io/AutoCRLFOutputStream.java

3
org.eclipse.jgit/src/org/eclipse/jgit/util/io/AutoCRLFOutputStream.java

@ -177,11 +177,12 @@ public class AutoCRLFOutputStream extends OutputStream {
if (binbufcnt < binbuf.length) if (binbufcnt < binbuf.length)
decideMode(); decideMode();
buf = -1; buf = -1;
out.flush();
} }
@Override @Override
public void close() throws IOException { public void close() throws IOException {
flush(); flush();
super.close(); out.close();
} }
} }

Loading…
Cancel
Save