# apply needs to be able to skip the binary material correctly
# in order to report the line number of a corrupt patch.
test_expect_success 'apply detecting corrupt patch correctly' '
- git diff | sed -e 's/-CIT/xCIT/' >broken &&
+ git diff | sed -e "s/-CIT/xCIT/" >broken &&
if git apply --stat --summary broken 2>detected
then
echo unhappy - should have detected an error
'
test_expect_success 'apply detecting corrupt patch correctly' '
- git diff --binary | sed -e 's/-CIT/xCIT/' >broken &&
+ git diff --binary | sed -e "s/-CIT/xCIT/" >broken &&
if git apply --stat --summary broken 2>detected
then
echo unhappy - should have detected an error