]> git.ipfire.org Git - thirdparty/git.git/commit - midx.c
midx: clear midx on repack
authorDerrick Stolee <stolee@gmail.com>
Thu, 12 Jul 2018 19:39:40 +0000 (15:39 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Jul 2018 18:27:29 +0000 (11:27 -0700)
commit525e18c04bb38450e6677bb2aa5c65b78254b5c2
tree4ecc21ed7cc9200580b1e20344681c5ef9420433
parent17c35c89698c1b9e130ae9a3dc9c016b353308d8
midx: clear midx on repack

If a 'git repack' command replaces existing packfiles, then we must
clear the existing multi-pack-index before moving the packfiles it
references.

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