[PATCH v6 2/7] t4205: unfold across multiple lines
- From
Taylor Blau <me@ttaylorr.com>
- Date
- Oct 2, 2017, 05:25 UTC
- Message-ID
- <20171002052524.12627-2-me@ttaylorr.com>
- In-Reply-To
- <20171002052524.12627-1-me@ttaylorr.com>
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> --- t/t4205-log-pretty-formats.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/t4205-log-pretty-formats.sh b/t/t4205-log-pretty-formats.sh index 977472f53..591f35daa 100755 --- a/t/t4205-log-pretty-formats.sh +++ b/t/t4205-log-pretty-formats.sh @@ -544,7 +544,7 @@ Signed-off-by: A U Thor EOF unfold () { - perl -0pe 's/\n\s+/ /' + perl -0pe 's/\n\s+/ /g' } test_expect_success 'set up trailer tests' '
-- 2.14.1.145.gb3622a4ee