reset: optionally setup worktree and refresh index on --mixed
[gitweb.git] / builtin / diff-index.c
index 1c737f79216fda2e5395422d8aee2e4f5d6482a4..ce15b23042d8472573b88e0ee9a6032673321ea3 100644 (file)
@@ -43,7 +43,7 @@ int cmd_diff_index(int argc, const char **argv, const char *prefix)
                usage(diff_cache_usage);
        if (!cached) {
                setup_work_tree();
-               if (read_cache_preload(rev.diffopt.pathspec.raw) < 0) {
+               if (read_cache_preload(&rev.diffopt.pathspec) < 0) {
                        perror("read_cache_preload");
                        return -1;
                }