3 # Copyright (c) 2006 Catalin Marinas
6 test_description
='git apply trying to add an ending line.
9 TEST_PASSES_SANITIZE_LEAK
=true
14 cat >test-patch
<<\EOF
15 diff --git a
/file b
/file
28 test_expect_success setup \
29 'git update-index --add file'
33 test_expect_success
'apply at the end' \
34 'test_must_fail git apply --index test-patch'
36 cat >test-patch
<<\EOF
51 test_expect_success
'apply at the beginning' \
52 'test_must_fail git apply --index test-patch'