]> git.ipfire.org Git - thirdparty/git.git/commitdiff
builtin/repack.c: move `.idx` files into place last
authorTaylor Blau <me@ttaylorr.com>
Thu, 9 Sep 2021 23:24:44 +0000 (19:24 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Sep 2021 01:23:11 +0000 (18:23 -0700)
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>
builtin/repack.c

index 5f9bc74adc05aff9a0dc9cf738dc82c733115eb9..c3e4771609363cac3958ccbfbbe1f2392bf0fc5f 100644 (file)
@@ -208,10 +208,10 @@ static struct {
        unsigned optional:1;
 } exts[] = {
        {".pack"},
-       {".idx"},
        {".rev", 1},
        {".bitmap", 1},
        {".promisor", 1},
+       {".idx"},
 };
 
 static unsigned populate_pack_exts(char *name)