line-range.c: remove implicit dependency on the_index
[gitweb.git] / builtin / diff.c
index 361a3c3ed38769f798b83933755fed84724ce43c..ab89b06d18e47794d32d75b788b0685365e7c576 100644 (file)
@@ -339,7 +339,7 @@ int cmd_diff(int argc, const char **argv, const char *prefix)
        }
        if (no_index)
                /* If this is a no-index diff, just run it and exit there. */
-               diff_no_index(&rev, argc, argv);
+               diff_no_index(the_repository, &rev, argc, argv);
 
        /* Otherwise, we are doing the usual "git" diff */
        rev.diffopt.skip_stat_unmatch = !!diff_auto_refresh_index;