Skip to content

Commit d17ef3a

Browse files
pcloudsgitster
authored andcommitted
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>
1 parent c7f3259 commit d17ef3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pathspec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ void add_pathspec_matches_against_index(const struct pathspec *pathspec,
3737
return;
3838
for (i = 0; i < istate->cache_nr; i++) {
3939
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);
4141
}
4242
}
4343

0 commit comments

Comments
 (0)