X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=t%2Ft0050-filesystem.sh;h=41df6bcf279a1abc4462e63866076094cfbdedd8;hb=6a1b3fc78311f16834d885e4e0baead8e51ed631;hp=89282ccf7a1a73d4b5ee085c4236b1204dc502c8;hpb=47344eee9b980a7cf2a08d040ff3dd38c6cd82ec;p=git.git diff --git a/t/t0050-filesystem.sh b/t/t0050-filesystem.sh index 89282ccf7..41df6bcf2 100755 --- a/t/t0050-filesystem.sh +++ b/t/t0050-filesystem.sh @@ -108,13 +108,17 @@ $test_case 'merge (case change)' ' ' -$test_case 'add (with different case)' ' + + +test_expect_failure '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 + camel=$(git ls-files | grep -i camelcase) && + test $(echo "$camel" | wc -l) = 1 && + test "z$(git cat-file blob :$camel)" = z1 '