fsck: ensure full index
commit2227ea175f9d2660c66f1bf15e2cd1ad75c9d4ca
authorDerrick Stolee <dstolee@microsoft.com>
Thu, 1 Apr 2021 01:49:47 +0000 (1 01:49 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Apr 2021 20:47:11 +0000 (14 13:47 -0700)
tree80ae2bd6ef2e93e9f4489c80a38d30359a8cf1cd
parent48b3c7da6c58752b0fbc73e891fd5b24c95281b1
fsck: ensure full index

When verifying all blobs reachable from the index, ensure that a sparse
index has been expanded to a full one to avoid missing some blobs.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fsck.c