Code

grep doc: add --break / --heading / -W to synopsis
[git.git] / t / t4136-apply-check.sh
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
9 '
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
17 '
19 test_done