3 test_description
='apply a patch that is larger than the preimage'
30 test_expect_success setup
'
34 sed -e "s/1/11/" -e "s/999999/9/" -e "s/H/HH/" <G >F &&
36 sed -e "/^\$/d" <G >F &&
41 test_expect_success
'apply should fail gracefully' '
43 if git apply --index patch
45 echo Oops, should not have succeeded
49 echo "Status was $status"
50 if test -f .git/index.lock
52 echo Oops, should not have crashed