Code

Sync with 1.7.8.5
[git.git] / t / t4150-am.sh
index 7e6e59aefe48aa41d23ddd0a82bbff18abd8705f..00d669a3c9bbf3329cf800fc15147770a45e6a4b 100755 (executable)
@@ -495,4 +495,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