]>
Commit | Line | Data |
---|---|---|
2092678c KB |
1 | #!/bin/sh |
2 | ||
3 | test_description='git-status with core.ignorecase=true' | |
4 | ||
3e3b9321 | 5 | TEST_PASSES_SANITIZE_LEAK=true |
2092678c KB |
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 |