]> git.ipfire.org Git - thirdparty/git.git/commit - midx.c
multi-pack-index: verify packname order
authorDerrick Stolee <dstolee@microsoft.com>
Thu, 13 Sep 2018 18:02:18 +0000 (11:02 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Sep 2018 20:49:41 +0000 (13:49 -0700)
commit8e72a3c321eb70caad036e45664de9ea10839b93
tree3539133833d736f97223f0f7dbd8c0db02053271
parentd3f8e211700c6c38f905a7d7ab1338df4784c79d
multi-pack-index: verify packname order

The final check we make while loading a multi-pack-index is that
the packfile names are in lexicographical order. Make this error
be a die() instead.

In order to test this condition, we need multiple packfiles.
Earlier in t5319-multi-pack-index.sh, we tested the interaction with
'git repack' but this limits us to one packfile in our object dir.
Move these repack tests until after the 'verify' tests.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
midx.c
t/t5319-multi-pack-index.sh