3 test_description
='git apply should exit non-zero with unrecognized input.'
7 test_expect_success
'setup' '
11 test_expect_success
'apply --check exits non-zero with unrecognized input' '
12 test_must_fail git apply --check - <<-\EOF
14 I look nothing like a patch
19 test_expect_success
'apply exits non-zero with no-op patch' '
22 index 6696ea4..606eddd 100644
28 test_must_fail git apply --stat input &&
29 test_must_fail git apply --check input
32 test_expect_success
'invalid combination: create and copy' '
33 test_must_fail git apply --check - <<-\EOF
41 test_expect_success
'invalid combination: create and rename' '
42 test_must_fail git apply --check - <<-\EOF