1#!/bin/sh
23
test_description='git apply should exit non-zero with unrecognized input.'
45
. ./test-lib.sh
67
test_expect_success 'setup' '
8test_commit 1
9'
1011
test_expect_success 'apply --check exits non-zero with unrecognized input' '
12test_must_fail git apply --check - <<-\EOF
13I am not a patch
14I look nothing like a patch
15git apply must fail
16EOF
17'
1819
test_done