]> git.99rst.org Git - git.git/commit
fsck: verify multi-pack-index when implictly enabled
authorGlen Choo <redacted>
Fri, 15 Oct 2021 20:16:30 +0000 (13:16 -0700)
committerJunio C Hamano <redacted>
Fri, 15 Oct 2021 21:30:08 +0000 (14:30 -0700)
commitdc5570872f684f7c838fe7571225d279243b8700
treea80685466218c7f07d2d4f9f0607cbb6b0ee099e
parentf30e4d854bb8462d1a4da697ad95501d33fe4425
fsck: verify multi-pack-index when implictly enabled

Like the previous commit, change fsck to check the
"core_multi_pack_index" variable set in "repo-settings.c" instead of
reading the "core.multiPackIndex" config variable. This fixes a bug
where we wouldn't verify midx if the config key was missing. This bug
was introduced in 18e449f86b (midx: enable core.multiPackIndex by
default, 2020-09-25) where core.multiPackIndex was turned on by default.

Helped-by: Ævar Arnfjörð Bjarmason <redacted>
Signed-off-by: Glen Choo <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/fsck.c
t/t5319-multi-pack-index.sh
git clone https://git.99rst.org/PROJECT