]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t0050: Add test for case insensitive add
authorSteffen Prohaska <prohaska@zib.de>
Sun, 11 May 2008 16:16:42 +0000 (18:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 11 May 2008 18:31:51 +0000 (11:31 -0700)
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>
t/t0050-filesystem.sh

index 399b45df1fdfd3d359152ecc2e87ee085dd6a358..0e33c4bdc7062015fa94c15cf4cc2ba558eeef72 100755 (executable)
@@ -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 &&