Merge branch 'tb/clone-case-smashing-warning-test'
authorJunio C Hamano <gitster@pobox.com>
Mon, 26 Nov 2018 14:13:42 +0000 (23:13 +0900)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Nov 2018 14:13:42 +0000 (23:13 +0900)
The code recently added to "git clone" to see if the platform's
filesystem is adequate to check out and use the project code
correctly (e.g. a case smashing filesystem cannot be used for a
project with two files whose paths are different only in case) was
meant to help Windows users, but the test for it was not enabled
for that platform, which has been corrected.

* tb/clone-case-smashing-warning-test:
t5601-99: Enable colliding file detection for MINGW

1  2 
t/t5601-clone.sh
diff --combined t/t5601-clone.sh
index c28d51bd59259a3cf2ceb7b3b14e5171901145b2,2424fb3d3e51380a8e89421fab21e94ebf3b83a9..8bbc7068acbd1eab9f0499ff1151abd58a87079c
@@@ -618,7 -618,7 +618,7 @@@ hex2oct () 
  test_expect_success 'clone on case-insensitive fs' '
        git init icasefs &&
        (
 -              cd icasefs
 +              cd icasefs &&
                o=$(git hash-object -w --stdin </dev/null | hex2oct) &&
                t=$(printf "100644 X\0${o}100644 x\0${o}" |
                        git hash-object -w -t tree --stdin) &&
        )
  '
  
- test_expect_success !MINGW,CASE_INSENSITIVE_FS 'colliding file detection' '
+ test_expect_success CASE_INSENSITIVE_FS 'colliding file detection' '
        grep X icasefs/warning &&
        grep x icasefs/warning &&
        test_i18ngrep "the following paths have collided" icasefs/warning