trailer: support multiline title
[gitweb.git] / t / t7513-interpret-trailers.sh
index 8f1f55be25befeaecb7e39d0d0654bf41500c131..1abec57f6e08a95a8d1bf6a3ec855a599fd20e2a 100755 (executable)
@@ -112,6 +112,20 @@ test_expect_success 'with only a title in the message' '
        test_cmp expected actual
 '
 
+test_expect_success 'with multiline title in the message' '
+       cat >expected <<-\EOF &&
+               place of
+               code: change
+
+               Reviewed-by: Peff
+               Acked-by: Johan
+       EOF
+       printf "%s\n" "place of" "code: change" |
+       git interpret-trailers --trailer "Reviewed-by: Peff" \
+               --trailer "Acked-by: Johan" >actual &&
+       test_cmp expected actual
+'
+
 test_expect_success 'with config setup' '
        git config trailer.ack.key "Acked-by: " &&
        cat >expected <<-\EOF &&