X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft0050-filesystem.sh;h=41df6bcf279a1abc4462e63866076094cfbdedd8;hb=861514d340021daa85bfa333c335932e9214988e;hp=89282ccf7a1a73d4b5ee085c4236b1204dc502c8;hpb=5e04a1ee33f82051668f09d73cf16348169e7f1f;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 '