diff options
author | Jeff King <peff@peff.net> | 2020-02-23 23:33:18 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-02-24 12:55:53 -0800 |
commit | e31c71083abef5dbe4b4112a1a1a24a90ce587f3 (patch) | |
tree | c2acdc349c4b72925f621c7a85c74f1017c78846 /t/t4013 | |
parent | pack-bitmap: use object_id when loading on-disk bitmaps (diff) | |
download | tgif-e31c71083abef5dbe4b4112a1a1a24a90ce587f3.tar.xz |
pack-check: convert "internal error" die to a BUG()
If we fail to load the oid from the index of a packfile, we'll die()
with an "internal error". But this should never happen: we'd fail here
only if the idx needed to be lazily opened (but we've already opened it)
or if we asked for an out-of-range index (but we're iterating using the
same count that we'd check the range against). A corrupted index might
have a bogus count (e.g., too large for its size), but we'd have
complained and aborted already when opening the index initially.
While we're here, we can add a few details so that if this bug ever
_does_ trigger, we'll have a bit more information.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013')
0 files changed, 0 insertions, 0 deletions