builtin/repack.c: move `.idx` files into place last

In a similar spirit as the previous patch, fix the identical problem from `git repack` (which invokes `pack-objects` with a temporary location for output, and then moves the files into their final locations itself). Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Taylor Blau committed Sep 9, 2021 at 19:24 UTC 4e58cedd948cf9bdf0e0c09dd312d1d9c1b035c0
1 file changed +1 -1
builtin/repack.c
+1 -1
@@ -208,10 +208,10 @@ static struct {
208 unsigned optional:1;
209 } exts[] = {
210 {".pack"},
211 - {".idx"},
211 {".rev", 1},
212 {".bitmap", 1},
213 {".promisor", 1},
214 + {".idx"},
215 };
216
217 static unsigned populate_pack_exts(char *name)