From: Eric Wong Date: Thu, 12 May 2016 09:06:56 +0000 (+0000) Subject: import: fallback to email if '<>' exists in author name X-Git-Tag: v1.0.0~553 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=8dfd3da2cb7967fcb52dcd816a6e52d143684061;p=public-inbox.git import: fallback to email if '<>' exists in author name git doesn't handle '<' and '>' characters in the author name at all regardless of quoting, not just matched pairs. So fall back to using the email as the author name since the commit info isn't critical, anyways (shallow clones are fine). --- diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm index 1f52a0cc..1db2a0b8 100644 --- a/lib/PublicInbox/Import.pm +++ b/lib/PublicInbox/Import.pm @@ -152,7 +152,7 @@ sub add { # "'A U Thor ' via foo" # ref: # - $name =~ s/<([^>]+)>/($1)/g; + $name =~ tr/<>// and $name = $email; my ($r, $w) = $self->gfi_start; my $tip = $self->{tip};