X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft7501-commit.sh;h=8297cb4f1e6e2d903dfbf6fde825d2c787082e58;hb=edea184a585c9bda560995f676092879a42e3e7a;hp=7940901d47fd457cda77ee333aa40145433be4d4;hpb=daaf2e8892cf3b652454c48ffd332e3c5b446b92;p=git.git diff --git a/t/t7501-commit.sh b/t/t7501-commit.sh index 7940901d4..8297cb4f1 100755 --- a/t/t7501-commit.sh +++ b/t/t7501-commit.sh @@ -425,4 +425,16 @@ test_expect_success 'amend using the message from a commit named with tag' ' ' +test_expect_success 'amend can copy notes' ' + + git config notes.rewrite.amend true && + git config notes.rewriteRef "refs/notes/*" && + test_commit foo && + git notes add -m"a note" && + test_tick && + git commit --amend -m"new foo" && + test "$(git notes show)" = "a note" + +' + test_done