Skip to content

Commit c864b4a

Browse files
hackhaslamEdward Thomson
authored andcommitted
Ignore submodules when checking for merge conflicts in the workdir.
1 parent afab1ff commit c864b4a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/merge.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2827,6 +2827,7 @@ static int merge_check_workdir(size_t *conflicts, git_repository *repo, git_inde
28272827
opts.flags |= GIT_DIFF_DISABLE_PATHSPEC_MATCH;
28282828
opts.pathspec.count = merged_paths->length;
28292829
opts.pathspec.strings = (char **)merged_paths->contents;
2830+
opts.ignore_submodules = GIT_SUBMODULE_IGNORE_ALL;
28302831

28312832
if ((error = git_diff_index_to_workdir(&wd_diff_list, repo, NULL, &opts)) < 0)
28322833
goto done;

0 commit comments

Comments
 (0)