]> source.dussan.org Git - jgit.git/commit
amend commit: Support large loose objects as streams 72/1072/2
authorShawn O. Pearce <spearce@spearce.org>
Wed, 7 Jul 2010 00:29:27 +0000 (17:29 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 7 Jul 2010 02:41:01 +0000 (19:41 -0700)
commitab3c68c512035a87071da3269ce8810b55b52b3f
tree4051d6d6f838246cfba08a7333eee32faa061198
parent4dd7b35b26db0b017113f37138b55a814a6df6fd
amend commit: Support large loose objects as streams

We need to validate the stream state after the InflaterInputStream
thinks the stream is done.  Git expects a higher level of service from
the Inflater than the InflaterInputStream usually gives, we need to
ensure the embedded CRC is valid, and that there isn't trailing
garbage at the end of the file.

Change-Id: I1c9642a82dbd76b69e607dceccf8b85dc869a3c1
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/UnpackedObjectTest.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/UnpackedObject.java