summaryrefslogtreecommitdiff
path: root/builtin/fast-import.c
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2021-04-01 01:49:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-04-14 20:46:59 (GMT)
commit1b850d37f42d58d1c4ad1454d80ecf33797bc467 (patch)
tree7ce46019e5ea36a20529e782f03d1b722ff0e783 /builtin/fast-import.c
parent54beed24d22867a98fc247e1031e3486573f1553 (diff)
downloadgit-1b850d37f42d58d1c4ad1454d80ecf33797bc467.zip
git-1b850d37f42d58d1c4ad1454d80ecf33797bc467.tar.gz
git-1b850d37f42d58d1c4ad1454d80ecf33797bc467.tar.bz2
checkout-index: ensure full index
Before we iterate over all cache entries, ensure that the index is not sparse. This loop in checkout_all() might be safe to iterate over a sparse index, but let's put this protection here until it can be carefully 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>
Diffstat (limited to 'builtin/fast-import.c')
0 files changed, 0 insertions, 0 deletions