Revision d2ae751b1cae0674e0a1f7fe4da0a341365cefbb authored by Junio C Hamano on 14 April 2015, 18:49:09 UTC, committed by Junio C Hamano on 14 April 2015, 18:49:09 UTC
* sb/plug-streaming-leak: streaming.c: fix a memleak
t4136-apply-check.sh
#!/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
Computing file changes ...