Merge branch 'bw/ls-files-sans-the-index'
[gitweb.git] / builtin / commit.c
index e3c9e190b06a63250a9c7eff3e256efcb10660f7..5968970b6519a8ed1a8b80ff6341a3ad1e6f542e 100644 (file)
@@ -253,7 +253,8 @@ static int list_paths(struct string_list *list, const char *with_tree,
 
        if (with_tree) {
                char *max_prefix = common_prefix(pattern);
-               overlay_tree_on_cache(with_tree, max_prefix ? max_prefix : prefix);
+               overlay_tree_on_index(&the_index, with_tree,
+                                     max_prefix ? max_prefix : prefix);
                free(max_prefix);
        }