3 test_description
='git-merge with case-changing rename on case-insensitive file system'
7 if ! test_have_prereq CASE_INSENSITIVE_FS
9 skip_all
='skipping case insensitive tests - case sensitive file system'
13 test_expect_success
'merge with case-changing rename' '
14 test $(git config core.ignorecase) = true &&
17 git commit -m "add TestCase" &&
19 git checkout -b with-camel &&
22 git commit -m "intervening commit" &&
23 git checkout master &&
27 git commit -m "rename to testcase" &&
28 git checkout with-camel &&
29 git merge master -m "merge" &&
30 test_path_is_file testcase
33 test_expect_success
'merge with case-changing rename on both sides' '
34 git checkout master &&
35 git reset --hard baseline &&
36 git branch -D with-camel &&
37 git checkout -b with-camel &&
38 git mv TestCase testcase &&
39 git commit -m "recase on branch" &&
42 git commit -m "intervening commit" &&
43 git checkout master &&
47 git commit -m "rename to testcase" &&
48 git checkout with-camel &&
49 git merge master -m "merge" &&
50 test_path_is_file testcase