3 test_description
='Merge-recursive rename/delete conflict message'
4 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
=main
5 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
7 TEST_PASSES_SANITIZE_LEAK
=true
10 test_expect_success
'rename/delete' '
13 git commit -m "initial" &&
15 git checkout -b rename &&
17 git commit -m "rename" &&
21 git commit -m "delete" &&
23 test_must_fail git merge --strategy=recursive rename >output &&
24 test_grep "CONFLICT (rename/delete): A.* renamed .*to B.* in rename" output &&
25 test_grep "CONFLICT (rename/delete): A.*deleted in HEAD." output