X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft3701-add-interactive.sh;h=fd2a55a5c23247c010a02513af73a93641cfb067;hb=f90cf2b9203e81e3a2b70b15480628e9189b7e60;hp=dfc65601aa2171bfc9321753a3d90db112d81f72;hpb=062868cc003d5952f11c7c9cd3940ae7d675960a;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