]> source.dussan.org Git - jgit.git/commit
Fix DeltaEncoder header for objects 128 bytes long 97/1097/1
authorShawn O. Pearce <spearce@spearce.org>
Wed, 7 Jul 2010 15:34:57 +0000 (08:34 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 7 Jul 2010 15:53:03 +0000 (08:53 -0700)
commita215914a5638726ab4533332e97d6abe6e7e9657
treede77f1d1ffe93c5c0574b02e66b9d0cd3b6282b9
parentf29741d1d86ea9baa7a37545da29be38a9d1af02
Fix DeltaEncoder header for objects 128 bytes long

The encode loop had the wrong condition, objects that are 128 bytes
in size need to have their length encoded as two bytes, not one.

Change-Id: I3bef85f2b774871ba6104042b341749eb8e7595c
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/DeltaEncoder.java