X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft4150-am.sh;h=6f77fffee60b5e37140dc8952c95144035ed457a;hb=91527e54d565e6fb6910fb3cb22f5915b5bd346e;hp=f1b60b8560ce1b27497d9e0e08af007159e04d1d;hpb=84f3d6458b0e71bd7a6c4f05ed3bd43b8fb9a9e4;p=git.git diff --git a/t/t4150-am.sh b/t/t4150-am.sh index f1b60b856..6f77fffee 100755 --- a/t/t4150-am.sh +++ b/t/t4150-am.sh @@ -505,4 +505,14 @@ test_expect_success 'am -q is quiet' ' ! test -s output.out ' +test_expect_success 'am empty-file does not infloop' ' + rm -fr .git/rebase-apply && + git reset --hard && + touch empty-file && + test_tick && + { git am empty-file > actual 2>&1 && false || :; } && + echo Patch format detection failed. >expected && + test_cmp expected actual +' + test_done