Commit 85ef6ec5f02b15163b10ad9153516d7fb3e42990

Jason Haslam 2016-05-12T13:18:07

Ignore submodules when checking for merge conflicts in the workdir.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/merge.c b/src/merge.c
index d2f92cc..174cbfb 100644
--- a/src/merge.c
+++ b/src/merge.c
@@ -2730,6 +2730,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;