Skip to content

Commit

Permalink
t0050: Add test for case insensitive add
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steffen Prohaska authored and Junio C Hamano committed May 11, 2008
1 parent b4a299d commit 8a19aaa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions t/t0050-filesystem.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit 8a19aaa

Please sign in to comment.