t0050: Add test for case insensitive add

Add should recognize if a file is added with a different case and add
the file using its original name.

Signed-off-by: Steffen Prohaska <prohaska@zib.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Steffen Prohaska 2008-05-11 18:16:42 +02:00 committed by Junio C Hamano
parent b4a299d87c
commit 8a19aaab63

View File

@ -77,6 +77,16 @@ $test_case 'merge (case change)' '
'
$test_case 'add (with different case)' '
git reset --hard initial &&
rm camelcase &&
echo 1 >CamelCase &&
git add CamelCase &&
test $(git-ls-files | grep -i camelcase | wc -l) = 1
'
test_expect_success "setup unicode normalization tests" '
test_create_repo unicode &&