sha1_file: restore OBJECT_INFO_QUICK functionality
[gitweb.git] / t / t4205-log-pretty-formats.sh
index 42f584f8b323b6d4f23e2243ff7c689955018794..591f35daaf5825cfdcf8e7fccf4f52462bbf8f78 100755 (executable)
@@ -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' '
@@ -588,9 +588,9 @@ test_expect_success '%(trailers:unfold) unfolds trailers' '
 '
 
 test_expect_success ':only and :unfold work together' '
-       git log --no-walk --pretty="%(trailers:only:unfold)" >actual &&
-       git log --no-walk --pretty="%(trailers:unfold:only)" >reverse &&
-       test_cmp reverse actual &&
+       git log --no-walk --pretty="%(trailers:only,unfold)" >actual &&
+       git log --no-walk --pretty="%(trailers:unfold,only)" >reverse &&
+       test_cmp actual reverse &&
        {
                grep -v patch.description <trailers | unfold &&
                echo