Skip to content

Commit ff82d12

Browse files
pcloudsgitster
authored andcommitted
resolve-undo.c: use the right index instead of the_index
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b67b551 commit ff82d12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resolve-undo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ void unmerge_index(struct index_state *istate, const struct pathspec *pathspec)
188188

189189
for (i = 0; i < istate->cache_nr; i++) {
190190
const struct cache_entry *ce = istate->cache[i];
191-
if (!ce_path_match(&the_index, ce, pathspec, NULL))
191+
if (!ce_path_match(istate, ce, pathspec, NULL))
192192
continue;
193193
i = unmerge_index_entry_at(istate, i);
194194
}

0 commit comments

Comments
 (0)