contrib: contacts: interpret committish akin to format-patch
[git/mingw/j6t.git] / t / t4136-apply-check.sh
bloba321f7c245da531cb8fea495a5e7ba02b3a6463b
1 #!/bin/sh
3 test_description='git apply should exit non-zero with unrecognized input.'
5 . ./test-lib.sh
7 test_expect_success 'setup' '
8 test_commit 1
11 test_expect_success 'apply --check exits non-zero with unrecognized input' '
12 test_must_fail git apply --check - <<-\EOF
13 I am not a patch
14 I look nothing like a patch
15 git apply must fail
16 EOF
19 test_done