Browse Source
* bc/maint-apply-check-no-patch: builtin/apply.c: report error on failure to recognize input t/t4131-apply-fake-ancestor.sh: fix broken testmaint

3 changed files with 25 additions and 6 deletions
@ -0,0 +1,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 |
Loading…
Reference in new issue