]> source.dussan.org Git - jgit.git/commit
Skip pack header bytes in DfsPackFile 92/88692/1
authorZhen Chen <czhen@google.com>
Sat, 14 Jan 2017 06:02:37 +0000 (22:02 -0800)
committerZhen Chen <czhen@google.com>
Sat, 14 Jan 2017 06:10:42 +0000 (22:10 -0800)
commitd6b354f60f1a5fd4719908e2ae820c16022e99ce
treea17c2aa052130456fccfc831bfd9ed1bb14faa3c
parent55c629a9f39e3560ecb3682b95a5049a3bc2ea89
Skip pack header bytes in DfsPackFile

The 12 bytes `PACK...` header is written in PackWriter before reading
CachedPack files. In DfsPackFile#copyPackBypassCache, the header was not
skipped when the first block is not in cache.

Change-Id: Ibbe2e564d36b79922a936657f286addb1044d237
Signed-off-by: Zhen Chen <czhen@google.com>
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java