Skip to content

Commit 8a19aaa

Browse files
sprohaskagitster
authored andcommitted
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>
1 parent b4a299d commit 8a19aaa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

t/t0050-filesystem.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,16 @@ $test_case 'merge (case change)' '
7777
7878
'
7979

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+
8090
test_expect_success "setup unicode normalization tests" '
8191
8292
test_create_repo unicode &&

0 commit comments

Comments
 (0)