pathspec.c: use the right index instead of the_index
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Nguyễn Thái Ngọc Duy committed
Aug 13, 2018 at 18:14 UTC
d17ef3a94e6ee33be568c33496a84f15fb5fd4ee
1 file changed
+1
-1
pathspec.c
+1
-1
@@ -37,7 +37,7 @@ void add_pathspec_matches_against_index(const struct pathspec *pathspec,
37
return;
38
for (i = 0; i < istate->cache_nr; i++) {
39
const struct cache_entry *ce = istate->cache[i];
40
- ce_path_match(&the_index, ce, pathspec, seen);
40
+ ce_path_match(istate, ce, pathspec, seen);
41
}
42
}
43