X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=t%2Ft3701-add-interactive.sh;h=fd2a55a5c23247c010a02513af73a93641cfb067;hb=00d3278c8534a8244ae3447189401111e017fd5d;hp=dfc65601aa2171bfc9321753a3d90db112d81f72;hpb=7d5a1806e8c2d9980938a05a56939272ad2ec338;p=git.git diff --git a/t/t3701-add-interactive.sh b/t/t3701-add-interactive.sh index dfc65601a..fd2a55a5c 100755 --- a/t/t3701-add-interactive.sh +++ b/t/t3701-add-interactive.sh @@ -165,4 +165,42 @@ test_expect_success FILEMODE 'stage mode but not hunk' ' # end of tests disabled when filemode is not usable +test_expect_success 'setup again' ' + git reset --hard && + test_chmod +x file && + echo content >>file +' + +# Write the patch file with a new line at the top and bottom +cat >patch <expected < diff && + test_cmp expected diff +' + test_done