fsck: use ERROR_MULTI_PACK_INDEX
commite68a5272b1aab46514ae01745be50948ac375146
authorDerrick Stolee <dstolee@microsoft.com>
Tue, 19 May 2020 19:48:45 +0000 (19 19:48 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 May 2020 23:13:22 +0000 (19 16:13 -0700)
tree1af3ed9be1c37fe8087102d104d69bb70debfa95
parent66ec0390e75406aa9f9295577052b9ec06d3a169
fsck: use ERROR_MULTI_PACK_INDEX

The multi-pack-index was added to the data verified by git-fsck in
ea5ae6c3 "fsck: verify multi-pack-index". This implementation was
based on the implementation for verifying the commit-graph, and a
copy-paste error kept the ERROR_COMMIT_GRAPH flag as the bit set
when an error appears in the multi-pack-index.

Add a new flag, ERROR_MULTI_PACK_INDEX, and use that instead.

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