From: Eric Wong Date: Tue, 12 Apr 2016 21:16:38 +0000 (+0000) Subject: import: filter out [<>] from user names X-Git-Tag: v1.0.0~609 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=63902f54a8ee411ad588fbabb5d70c9099826345;p=public-inbox.git import: filter out [<>] from user names It confuses the git ident parser and may not be a great idea to fix in git since it could break interopability with older versions. --- diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm index 5bae69df..7073c3d9 100644 --- a/lib/PublicInbox/Import.pm +++ b/lib/PublicInbox/Import.pm @@ -139,6 +139,12 @@ sub add { my $mid = mid_mime($mime); my $path = mid2path($mid); + # git gets confused with: + # "'A U Thor ' via foo" + # ref: + # + $name =~ s/<([^>]+)>/($1)/g; + my ($r, $w) = $self->gfi_start; my $tip = $self->{tip}; if ($tip ne '') {