From 8a19aaab6394df2c6138d5b8b1411eb00bfcf442 Mon Sep 17 00:00:00 2001 From: Steffen Prohaska Date: Sun, 11 May 2008 18:16:42 +0200 Subject: [PATCH] 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 Signed-off-by: Junio C Hamano --- t/t0050-filesystem.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/t/t0050-filesystem.sh b/t/t0050-filesystem.sh index 399b45df1f..0e33c4bdc7 100755 --- a/t/t0050-filesystem.sh +++ b/t/t0050-filesystem.sh @@ -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 && -- 2.11.4.GIT