From: Steffen Prohaska Date: Sun, 11 May 2008 16:16:42 GMT Subject: [PATCH 4/4] t0050: Add test for case insensitive add Message-ID: <1210522602-4724-4-git-send-email-prohaska@zib.de> In-Reply-To: <1210522602-4724-3-git-send-email-prohaska@zib.de> 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 --- t/t0050-filesystem.sh | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/t/t0050-filesystem.sh b/t/t0050-filesystem.sh index 399b45d..0e33c4b 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 && -- 1.5.5.1.313.g9decb