]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t3400: restore coverage for note copying with apply backend
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Tue, 30 Jun 2026 15:28:51 +0000 (16:28 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Jun 2026 19:03:13 +0000 (12:03 -0700)
Now that the merge backend is the default we have lost coverage for
"git rebase --apply" copying notes. Fix this by replacing "-m" with
"--apply" as the previous test which uses the default backend now
checks the merge backend.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3400-rebase.sh

index c0c00fbb7b1e4ed52434c7af1b6f0e56fbe66614..f0e7fcf649aebc70a08a3a8c7bd324a4cd18e751 100755 (executable)
@@ -270,9 +270,9 @@ test_expect_success 'rebase can copy notes' '
        test "a note" = "$(git notes show HEAD)"
 '
 
-test_expect_success 'rebase -m can copy notes' '
+test_expect_success 'rebase --apply can copy notes' '
        git reset --hard n3 &&
-       git rebase -m --onto n1 n2 &&
+       git rebase --apply --onto n1 n2 &&
        test "a note" = "$(git notes show HEAD)"
 '