Merge branch 'jc/add-u-A-default-to-top' into maint
[gitweb.git] / t / t7513-interpret-trailers.sh
index 9577b4effb05904f9f6b29b4321b103ebdd52e7f..322c436a494c14a7350d6fdd85efbfbc5a7a8d28 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 &&