Merge branch 'nd/worktree-remove-with-uninitialized-submodules'
[gitweb.git] / builtin / ls-files.c
index c70a9c71588a76b2ef04689fc6cd805cee4ae0b8..7e0dcaa3599da68c62d05655e488467b7756409b 100644 (file)
@@ -441,7 +441,7 @@ void overlay_tree_on_index(struct index_state *istate,
                               PATHSPEC_PREFER_CWD, prefix, matchbuf);
        } else
                memset(&pathspec, 0, sizeof(pathspec));
-       if (read_tree(tree, 1, &pathspec, istate))
+       if (read_tree(the_repository, tree, 1, &pathspec, istate))
                die("unable to read tree entries %s", tree_name);
 
        for (i = 0; i < istate->cache_nr; i++) {