Remove unnecessary truncation of in-pack size during copy
commitae972e774e2eb8c72585ad3d4e02687a5c2df66f
authorShawn O. Pearce <spearce@spearce.org>
Sun, 16 May 2010 02:10:47 +0000 (15 19:10 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 17 May 2010 14:13:55 +0000 (17 07:13 -0700)
treed520e80d33fc6cc9c1d25d163bc8360df05f137f
parentb6d0586befb3417a72730443770abb223b9cae83
Remove unnecessary truncation of in-pack size during copy

The number of bytes to copy was truncated to an int, but the
pack's copyToStream() method expected to be passed a long here.
Pass through the long so we don't truncate a giant object.

Change-Id: I0786ad60a3a33f84d8746efe51f68d64e127c332
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/lib/PackFile.java