Skip to content

Commit

Permalink
Ignore submodules when checking for merge conflicts in the workdir.
Browse files Browse the repository at this point in the history
  • Loading branch information
hackhaslam authored and Edward Thomson committed May 26, 2016
1 parent afab1ff commit c864b4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/merge.c
Original file line number Diff line number Diff line change
Expand Up @@ -2827,6 +2827,7 @@ static int merge_check_workdir(size_t *conflicts, git_repository *repo, git_inde
opts.flags |= GIT_DIFF_DISABLE_PATHSPEC_MATCH;
opts.pathspec.count = merged_paths->length;
opts.pathspec.strings = (char **)merged_paths->contents;
opts.ignore_submodules = GIT_SUBMODULE_IGNORE_ALL;

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

0 comments on commit c864b4a

Please sign in to comment.