completion: standardize final space marker in tests
[gitweb.git] / t / t7608-merge-messages.sh
index 9d10583916d42092eaee29fbcafc73b1c827773b..8e7e0a5865d762c1cb859154c2d4735b9bf8722b 100755 (executable)
@@ -35,16 +35,26 @@ test_expect_success 'merge tag' '
        git checkout master &&
        test_commit master-3 &&
        git merge tag-1 &&
-       check_oneline "Merge commit Qtag-1Q"
+       check_oneline "Merge tag Qtag-1Q"
 '
 
-test_expect_failure 'ambiguous tag' '
+test_expect_success 'ambiguous tag' '
        git checkout -b ambiguous master &&
        test_commit ambiguous &&
        git checkout master &&
        test_commit master-4 &&
        git merge ambiguous &&
-       check_oneline "Merge commit QambiguousQ"
+       check_oneline "Merge tag QambiguousQ"
+'
+
+test_expect_success 'remote-tracking branch' '
+       git checkout -b remote master &&
+       test_commit remote-1 &&
+       git update-ref refs/remotes/origin/master remote &&
+       git checkout master &&
+       test_commit master-5 &&
+       git merge origin/master &&
+       check_oneline "Merge remote-tracking branch Qorigin/masterQ"
 '
 
 test_done