X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=t%2Ft3701-add-interactive.sh;h=69991a3168f354b8bfefcd396a968e653bb352bd;hb=689204ca8862a25be7bd7f91a42fbdf46cfb2a56;hp=65dfbc033a027df1a590cbfaf75ae47f4ed9c547;hpb=95500c8a0d252e70f32f6c7aedda204741bf5dfd;p=thirdparty%2Fgit.git diff --git a/t/t3701-add-interactive.sh b/t/t3701-add-interactive.sh index 65dfbc033a..69991a3168 100755 --- a/t/t3701-add-interactive.sh +++ b/t/t3701-add-interactive.sh @@ -639,4 +639,12 @@ test_expect_success 'add -p patch editing works with pathological context lines' test_cmp expected-2 actual ' +test_expect_success 'checkout -p works with pathological context lines' ' + test_write_lines a a a a a a >a && + git add a && + test_write_lines a b a b a b a b a b a > a&& + test_write_lines s n n y q | git checkout -p && + test_write_lines a b a b a a b a b a >expect && + test_cmp expect a +' test_done