]> git.ipfire.org Git - thirdparty/git.git/blame - t/t6425-merge-rename-delete.sh
The third batch
[thirdparty/git.git] / t / t6425-merge-rename-delete.sh
CommitLineData
b26d87f2
MM
1#!/bin/sh
2
3test_description='Merge-recursive rename/delete conflict message'
5902f5f4 4GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
334afbc7
JS
5export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6
3e3b9321 7TEST_PASSES_SANITIZE_LEAK=true
b26d87f2
MM
8. ./test-lib.sh
9
10test_expect_success 'rename/delete' '
11 echo foo >A &&
12 git add A &&
13 git commit -m "initial" &&
14
15 git checkout -b rename &&
16 git mv A B &&
17 git commit -m "rename" &&
18
5902f5f4 19 git checkout main &&
b26d87f2
MM
20 git rm A &&
21 git commit -m "delete" &&
22
23 test_must_fail git merge --strategy=recursive rename >output &&
6789275d
JH
24 test_grep "CONFLICT (rename/delete): A.* renamed .*to B.* in rename" output &&
25 test_grep "CONFLICT (rename/delete): A.*deleted in HEAD." output
b26d87f2
MM
26'
27
28test_done