@matheusbsbs / matheus-bagliano / commits / 8a19aaab63
Fork 0

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>

Steffen Prohaska committed May 11, 2008 at 18:16 UTC 8a19aaab6394df2c6138d5b8b1411eb00bfcf442
1 file changed +10
t/t0050-filesystem.sh
+10
@@ -77,6 +77,16 @@ $test_case 'merge (case change)' '
77
78 '
79
80 +$test_case 'add (with different case)' '
81 +
82 + git reset --hard initial &&
83 + rm camelcase &&
84 + echo 1 >CamelCase &&
85 + git add CamelCase &&
86 + test $(git-ls-files | grep -i camelcase | wc -l) = 1
87 +
88 +'
89 +
90 test_expect_success "setup unicode normalization tests" '
91
92 test_create_repo unicode &&