mirror of
https://github.com/git/git.git
synced 2024-11-15 13:43:45 +01:00
20 lines
359 B
Bash
20 lines
359 B
Bash
|
#!/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
|