3 test_description='git-merge with case-changing rename on case-insensitive file system'
5 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
6 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 if ! test_have_prereq CASE_INSENSITIVE_FS
12 skip_all='skipping case insensitive tests - case sensitive file system'
16 test_expect_success 'merge with case-changing rename' '
17 test $(git config core.ignorecase) = true &&
20 git commit -m "add TestCase" &&
22 git checkout -b with-camel &&
25 git commit -m "intervening commit" &&
30 git commit -m "rename to testcase" &&
31 git checkout with-camel &&
32 git merge main -m "merge" &&
33 test_path_is_file testcase
36 test_expect_success 'merge with case-changing rename on both sides' '
38 git reset --hard baseline &&
39 git branch -D with-camel &&
40 git checkout -b with-camel &&
41 git mv TestCase testcase &&
42 git commit -m "recase on branch" &&
45 git commit -m "intervening commit" &&
50 git commit -m "rename to testcase" &&
51 git checkout with-camel &&
52 git merge main -m "merge" &&
53 test_path_is_file testcase