]> source.dussan.org Git - jgit.git/commit
TemporaryBuffer: Fix reading from in-memory InputStream 77/3777/1
authorShawn O. Pearce <spearce@spearce.org>
Fri, 24 Jun 2011 19:35:19 +0000 (12:35 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Fri, 24 Jun 2011 19:37:58 +0000 (12:37 -0700)
commit826fb260a3515c86eba9e65e54695c78a085425c
treeff8616377fc8085817697315389b1a39dfe016cc
parent2cebb7dbc712898197029881a8c1f41628e51804
TemporaryBuffer: Fix reading from in-memory InputStream

I had the conditions wrong here, causing the in-memory InputStream
to always appear to be at EOF.

Change-Id: I6811d6187a34eaf1fd6c5002550d631decdfc391
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.test/tst/org/eclipse/jgit/util/TemporaryBufferTest.java
org.eclipse.jgit/src/org/eclipse/jgit/util/TemporaryBuffer.java