t/test-lib: add an SHA1 prerequisite
[git/debian.git] / t / t6045-merge-rename-delete.sh
blob5d33577d2f79f3ef1248d0090028ab350b6b9ea3
1 #!/bin/sh
3 test_description='Merge-recursive rename/delete conflict message'
4 . ./test-lib.sh
6 test_expect_success 'rename/delete' '
7 echo foo >A &&
8 git add A &&
9 git commit -m "initial" &&
11 git checkout -b rename &&
12 git mv A B &&
13 git commit -m "rename" &&
15 git checkout master &&
16 git rm A &&
17 git commit -m "delete" &&
19 test_must_fail git merge --strategy=recursive rename >output &&
20 test_i18ngrep "CONFLICT (rename/delete): A deleted in HEAD and renamed to B in rename. Version rename of B left in tree." output
23 test_done