t/helper/test-dump-split-index: initialize git repository
authorbrian m. carlson <redacted>
Sat, 22 Feb 2020 20:17:34 +0000 (20:17 +0000)
committerJunio C Hamano <redacted>
Mon, 24 Feb 2020 17:33:24 +0000 (09:33 -0800)
In this test helper, we read the index.  In order to have the proper
hash algorithm set up, we must call setup_git_directory.  Do so, so that
the test works when extensions.objectFormat is set.

Signed-off-by: brian m. carlson <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/helper/test-dump-split-index.c

index 63c689d6ee9d018efd32aa228ee3cf784fa5b71d..a209880eb37a2ce4de4b9f916ec3dbf52b987957 100644 (file)
@@ -13,6 +13,8 @@ int cmd__dump_split_index(int ac, const char **av)
        struct split_index *si;
        int i;
 
+       setup_git_directory();
+
        do_read_index(&the_index, av[1], 1);
        printf("own %s\n", oid_to_hex(&the_index.oid));
        si = the_index.split_index;
git clone https://git.99rst.org/PROJECT