From 8dfd3da2cb7967fcb52dcd816a6e52d143684061 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 12 May 2016 09:06:56 +0000 Subject: 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). --- lib/PublicInbox/Import.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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}; -- cgit v1.2.3-24-ge0c7