summaryrefslogtreecommitdiff
path: root/t/t4136-apply-check.sh
blob: a321f7c245da531cb8fea495a5e7ba02b3a6463b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
 
test_description='git apply should exit non-zero with unrecognized input.'
 
. ./test-lib.sh
 
test_expect_success 'setup' '
	test_commit 1
'
 
test_expect_success 'apply --check exits non-zero with unrecognized input' '
	test_must_fail git apply --check - <<-\EOF
	I am not a patch
	I look nothing like a patch
	git apply must fail
	EOF
'
 
test_done