From: Shawn Pearce Date: Mon, 25 Sep 2006 03:04:55 +0000 (-0400) Subject: Allow '(no author)' in git-svn's authors file. X-Git-Tag: v1.4.3-rc1~36 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/8815788e93c0a5a2e47e067dfa0764b17b8d1ddd?hp=-c 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 --- 8815788e93c0a5a2e47e067dfa0764b17b8d1ddd 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]; }