]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/difftool.c
treewide: always have a valid "index_state.repo" member
[thirdparty/git.git] / builtin / difftool.c
index 758e7bd3b6ad743e30b30ec4e222f0742dd07f09..dbbfb19f1921028f78b499af0ad35a67c9595d59 100644 (file)
@@ -361,7 +361,7 @@ static int run_dir_diff(const char *extcmd, int symlinks, const char *prefix,
        struct hashmap symlinks2 = HASHMAP_INIT(pair_cmp, NULL);
        struct hashmap_iter iter;
        struct pair_entry *entry;
-       struct index_state wtindex = INDEX_STATE_INIT;
+       struct index_state wtindex = INDEX_STATE_INIT(the_repository);
        struct checkout lstate, rstate;
        int err = 0;
        struct child_process cmd = CHILD_PROCESS_INIT;