t4150: test applying with a newline in subject
[gitweb.git] / t / t4150-am.sh
index d6ebbaebe2c258a4694cfb709809e13d24084231..51c369ad1428330b917ffe50ba9963d59be650ea 100755 (executable)
@@ -305,4 +305,12 @@ test_expect_success 'am into an unborn branch' '
        test "z$result" = "z$(git rev-parse first^{tree})"
 '
 
+test_expect_success 'am newline in subject' '
+       git checkout first &&
+       test_tick &&
+       sed -e "s/second/second \\\n foo/" patch1 > patchnl &&
+       git am < patchnl > output.out 2>&1 &&
+       grep "^Applying: second \\\n foo$" output.out
+'
+
 test_done