3 test_description='merging with submodules'
17 test_expect_success setup '
22 echo original > file &&
25 git commit -m sub-root) &&
30 git checkout -b a master &&
35 git commit -m sub-a) &&
40 git checkout -b b master &&
45 git commit -m sub-b) &&
50 git checkout -b c a &&
51 git merge -s ours b &&
53 git checkout -b d b &&
57 test_expect_success 'merging with modify/modify conflict' '
59 git checkout -b test1 a &&
60 test_must_fail git merge b &&
61 test -f .git/MERGE_MSG &&
63 test -n "$(git ls-files -u)"
66 test_expect_success 'merging with a modify/modify conflict between merge bases' '
68 git reset --hard HEAD &&
69 git checkout -b test2 c &&