@matheusbsbs / matheus-bagliano / commits / 8815788e93
Fork 0

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 <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>

Shawn Pearce committed Sep 24, 2006 at 23:04 UTC 8815788e93c0a5a2e47e067dfa0764b17b8d1ddd
1 file changed +1 -1
git-svn.perl
+1 -1
@@ -2171,7 +2171,7 @@ sub load_authors {
2171 open my $authors, '<', $_authors or die "Can't open $_authors $!\n";
2172 while (<$authors>) {
2173 chomp;
2174 - next unless /^(\S+?)\s*=\s*(.+?)\s*<(.+)>\s*$/;
2174 + next unless /^(\S+?|\(no author\))\s*=\s*(.+?)\s*<(.+)>\s*$/;
2175 my ($user, $name, $email) = ($1, $2, $3);
2176 $users{$user} = [$name, $email];
2177 }