summaryrefslogtreecommitdiff
path: root/t/t0050-filesystem.sh
diff options
context:
space:
mode:
authorSteffen Prohaska <prohaska@zib.de>2008-05-11 16:16:42 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-05-11 18:31:51 (GMT)
commit8a19aaab6394df2c6138d5b8b1411eb00bfcf442 (patch)
tree1833d2def525c6e7a39486d9709414c5914dad69 /t/t0050-filesystem.sh
parentb4a299d87ca7a1d39c699ee2af28305e57f3b0ae (diff)
downloadgit-8a19aaab6394df2c6138d5b8b1411eb00bfcf442.zip
git-8a19aaab6394df2c6138d5b8b1411eb00bfcf442.tar.gz
git-8a19aaab6394df2c6138d5b8b1411eb00bfcf442.tar.bz2
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>
Diffstat (limited to 't/t0050-filesystem.sh')
-rwxr-xr-xt/t0050-filesystem.sh10
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 &&