From: Robin Rosenberg Date: Sun, 02 Jul 2006 22:21:00 GMT Subject: [PATCH] Empty author may be presented by svn as an empty string or a null value. Message-ID: <20060702222100.2863.72633.stgit@h15n1fls34o811.telia.com> From: Robin Rosenberg --- git-svnimport.perl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/git-svnimport.perl b/git-svnimport.perl index 38ac732..26dc454 100755 --- a/git-svnimport.perl +++ b/git-svnimport.perl @@ -534,7 +534,7 @@ sub commit { my($author_name,$author_email,$dest); my(@old,@new,@parents); - if (not defined $author) { + if (not defined $author or $author eq "") { $author_name = $author_email = "unknown"; } elsif (defined $users_file) { die "User $author is not listed in $users_file\n"