]> git.ipfire.org Git - thirdparty/git.git/blob - t/t7062-wtstatus-ignorecase.sh
Sync with Git 2.45.1
[thirdparty/git.git] / t / t7062-wtstatus-ignorecase.sh
1 #!/bin/sh
2
3 test_description='git-status with core.ignorecase=true'
4
5 TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7
8 test_expect_success 'status with hash collisions' '
9 # note: "V/", "V/XQANY/" and "WURZAUP/" produce the same hash code
10 # in name-hash.c::hash_name
11 mkdir V &&
12 mkdir V/XQANY &&
13 mkdir WURZAUP &&
14 touch V/XQANY/test &&
15 git config core.ignorecase true &&
16 git add . &&
17 # test is successful if git status completes (no endless loop)
18 git status
19 '
20
21 test_done