From 8815788e93c0a5a2e47e067dfa0764b17b8d1ddd Mon Sep 17 00:00:00 2001 From: Shawn Pearce Date: Sun, 24 Sep 2006 23:04:55 -0400 Subject: [PATCH] Allow '(no author)' in git-svn's authors file. When trying to import an SVN revision which has no author the Git user may desire to relabel '(no author)' to another name and email address with their svn.authorsfile. Signed-off-by: Shawn O. Pearce Signed-off-by: Junio C Hamano --- git-svn.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-svn.perl b/git-svn.perl index 8a2ef9909c..017f45ac97 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -2171,7 +2171,7 @@ sub load_authors { open my $authors, '<', $_authors or die "Can't open $_authors $!\n"; while (<$authors>) { chomp; - next unless /^(\S+?)\s*=\s*(.+?)\s*<(.+)>\s*$/; + next unless /^(\S+?|\(no author\))\s*=\s*(.+?)\s*<(.+)>\s*$/; my ($user, $name, $email) = ($1, $2, $3); $users{$user} = [$name, $email]; } -- 2.11.4.GIT