t4205: unfold across multiple lines

Tests in t4205 test the following: git log --format='%(trailers:unfold)' ... By ensuring the multi-line trailers are unfolded back onto the same line. t4205 only includes tests for 2-line trailers, but `unfold()` will fail for folded trailers on 3 or more lines. In preparation for adding subsequent tests in t6300 that test similar behavior in `git-for-each-ref(1)`, let's harden t4205 (and make it consistent with the changes in t6300) by ensuring that 3 or more line folded trailers are unfolded correctly. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Taylor Blau committed Oct 1, 2017 at 22:25 UTC 6f5c77a1190d83f0c02b480f0e04c0dd78d954ed
1 file changed +1 -1
t/t4205-log-pretty-formats.sh
+1 -1
@@ -544,7 +544,7 @@ Signed-off-by: A U Thor
544 EOF
545
546 unfold () {
547 - perl -0pe 's/\n\s+/ /'
547 + perl -0pe 's/\n\s+/ /g'
548 }
549
550 test_expect_success 'set up trailer tests' '