From: Robin Rosenberg Date: Sun, 2 Jul 2006 22:21:00 +0000 (+0200) Subject: Empty author may be presented by svn as an empty string or a null value. X-Git-Tag: v1.4.2-rc1~98 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=35c636ec487d0d5c38e0ce8d3d7bc7ca42c6e5c1;p=git.git Empty author may be presented by svn as an empty string or a null value. Signed-off-by: Junio C Hamano --- diff --git a/git-svnimport.perl b/git-svnimport.perl index 38ac732ca..26dc45479 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"