From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.1 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, RP_MATCHES_RCVD shortcircuit=no autolearn=unavailable version=3.3.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id ED7AD633837 for ; Thu, 12 May 2016 09:52:05 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] import: fallback to email if '<>' exists in author name Date: Thu, 12 May 2016 09:52:04 +0000 Message-Id: <20160512095205.6139-2-e@80x24.org> In-Reply-To: <20160512095205.6139-1-e@80x24.org> References: <20160512095205.6139-1-e@80x24.org> List-Id: 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(-) diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm index 1f52a0c..1db2a0b 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};