revert: fix off by one read when searching the end of a commit subject
[gitweb.git] / t / t7405-submodule-merge.sh
index 9778ad49cf1c8ac344f20eb50ef0a88e2b2668aa..4a7b8933f4bf1036ba1e044d6e2dc54d72084039 100755 (executable)
@@ -45,7 +45,7 @@ test_expect_success setup '
         git commit -m sub-b) &&
        git add sub &&
        test_tick &&
-       git commit -m b
+       git commit -m b &&
 
        git checkout -b c a &&
        git merge -s ours b &&
@@ -54,16 +54,16 @@ test_expect_success setup '
        git merge -s ours a
 '
 
-test_expect_failure 'merging with modify/modify conflict' '
+test_expect_success 'merging with modify/modify conflict' '
 
        git checkout -b test1 a &&
        test_must_fail git merge b &&
        test -f .git/MERGE_MSG &&
-       git diff
-
+       git diff &&
+       test -n "$(git ls-files -u)"
 '
 
-test_expect_failure 'merging with a modify/modify conflict between merge bases' '
+test_expect_success 'merging with a modify/modify conflict between merge bases' '
 
        git reset --hard HEAD &&
        git checkout -b test2 c &&