X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft4150-am.sh;h=6f77fffee60b5e37140dc8952c95144035ed457a;hb=507fba2b98a85fab42a89d93240d2e09d6245d26;hp=f1b60b8560ce1b27497d9e0e08af007159e04d1d;hpb=0364bb135e285d4118b69979ade3078fab50e08a;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