diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-05-04 15:51:27 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-05-04 15:51:27 -0700 |
commit | 5ead6a6fdb5f613cbe252e264e18db709994cfe4 (patch) | |
tree | 94b2065122b495cb5aef5dc177b3eefb164ed289 /t/t4014-format-patch.sh | |
parent | 59b2389c324dbbb335bd3375d950433b600eee90 (diff) | |
parent | 990f6e30eb00adeb8cad75c3be34c0fc9ff6abb0 (diff) | |
download | git-5ead6a6fdb5f613cbe252e264e18db709994cfe4.tar.gz git-5ead6a6fdb5f613cbe252e264e18db709994cfe4.tar.xz |
Merge branch 'jk/format-patch-multiline-header'
* jk/format-patch-multiline-header:
format-patch: wrap email addresses after long names
Diffstat (limited to 't/t4014-format-patch.sh')
-rwxr-xr-x | t/t4014-format-patch.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/t/t4014-format-patch.sh b/t/t4014-format-patch.sh index 37a4109c9..a7060b75b 100755 --- a/t/t4014-format-patch.sh +++ b/t/t4014-format-patch.sh @@ -793,4 +793,19 @@ test_expect_success 'format-patch wraps extremely long headers (rfc2047)' ' test_cmp expect subject ' +M8="foo_bar_" +M64=$M8$M8$M8$M8$M8$M8$M8$M8 +cat >expect <<EOF +From: $M64 + <foobar@foo.bar> +EOF +test_expect_success 'format-patch wraps non-quotable headers' ' + rm -rf patches/ && + echo content >>file && + git add file && + git commit -mfoo --author "$M64 <foobar@foo.bar>" && + git format-patch --stdout -1 >patch && + sed -n "/^From: /p; /^ /p; /^$/q" <patch >from && + test_cmp expect from +' test_done |