From: Derrick Stolee Date: Thu, 13 Sep 2018 18:02:25 +0000 (-0700) Subject: multi-pack-index: verify object offsets X-Git-Tag: v2.20.0-rc0~197^2~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/cc6af73c029da23f7b2c98c60e4fba1ca2db215b?ds=inline;hp=cc6af73c029da23f7b2c98c60e4fba1ca2db215b multi-pack-index: verify object offsets The 'git multi-pack-index verify' command must verify the object offsets stored in the multi-pack-index are correct. There are two ways the offset chunk can be incorrect: the pack-int-id and the object offset. Replace the BUG() statement with a die() statement, now that we may hit a bad pack-int-id during a 'verify' command on a corrupt multi-pack-index, and it is covered by a test. Signed-off-by: Derrick Stolee Signed-off-by: Junio C Hamano ---