revision: ensure full index
authorDerrick Stolee <dstolee@microsoft.com>
Thu, 1 Apr 2021 01:50:00 +0000 (01:50 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Apr 2021 20:47:48 +0000 (13:47 -0700)
commitf5fed74fb2eac4d7c6fd4b09f2167b83942c0f13
tree958f4f640e7b14d5f65cdce97f9550e9f9b9b868
parentdc26b23ebc30adcb4aa54a5eccf2e47793984fa2
revision: ensure full index

Before iterating over all index entries, ensure that a sparse index is
expanded to a full index to avoid unexpected behavior. This case could
be integrated later by ensuring that we walk the tree in the
sparse-directory entry, but the current behavior is only expecting
blobs. Save this integration for later when it can be properly tested.

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