Skip to content

Commit 6f5c77a

Browse files
ttaylorrgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 84ff053 commit 6f5c77a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t4205-log-pretty-formats.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ Signed-off-by: A U Thor
544544
EOF
545545

546546
unfold () {
547-
perl -0pe 's/\n\s+/ /'
547+
perl -0pe 's/\n\s+/ /g'
548548
}
549549

550550
test_expect_success 'set up trailer tests' '

0 commit comments

Comments
 (0)