]> git.ipfire.org Git - thirdparty/git.git/commitdiff
contrib: subtree: adjust test to change in fmt-merge-msg
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>
Mon, 29 Jun 2020 16:20:03 +0000 (23:20 +0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Jun 2020 15:41:15 +0000 (08:41 -0700)
We're starting to stop treating `master' specially in fmt-merge-msg.
Adjust the test to reflect that change.

Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/subtree/t/t7900-subtree.sh

index 57ff4b25c17e5479e9dc058fd723d44faa23877b..53d7accf949fef1882f051805570a4797e46de3f 100755 (executable)
@@ -196,7 +196,8 @@ test_expect_success 'merge new subproj history into sub dir/ with --prefix' '
                cd "$subtree_test_count" &&
                git fetch ./"sub proj" master &&
                git subtree merge --prefix="sub dir" FETCH_HEAD &&
-               check_equal "$(last_commit_message)" "Merge commit '\''$(git rev-parse FETCH_HEAD)'\''"
+               check_equal "$(last_commit_message)" \
+                       "Merge commit '\''$(git rev-parse FETCH_HEAD)'\'' into master"
        )
 '
 
@@ -273,7 +274,8 @@ test_expect_success 'merge new subproj history into subdir/ with a slash appende
                cd "$test_count" &&
                git fetch ./subproj master &&
                git subtree merge --prefix=subdir/ FETCH_HEAD &&
-               check_equal "$(last_commit_message)" "Merge commit '\''$(git rev-parse FETCH_HEAD)'\''"
+               check_equal "$(last_commit_message)" \
+                       "Merge commit '\''$(git rev-parse FETCH_HEAD)'\'' into master"
        )
 '