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)
decideMode();
buf = -1;
out.flush();
}
@Override
public void close() throws IOException {
flush();
super.close();
out.close();
}
}

Loading…
Cancel
Save