3 test_description='merge conflict in crlf repo
13 test_expect_success setup '
14 git config core.autocrlf true &&
15 echo foo | append_cr >file &&
17 git commit -m "Initial" &&
20 echo line from a | append_cr >file &&
21 git commit -m "add line from a" file &&
24 echo line from b | append_cr >file &&
25 git commit -m "add line from b" file &&
30 test_expect_success 'Check "ours" is CRLF' '
31 git reset --hard initial &&
32 git merge side -s ours &&
33 cat file | remove_cr | append_cr >file.temp &&
34 test_cmp file file.temp
37 test_expect_success 'Check that conflict file is CRLF' '
39 test_must_fail git merge side &&
40 cat file | remove_cr | append_cr >file.temp &&
41 test_cmp file file.temp