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.1.1~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/35c636ec487d0d5c38e0ce8d3d7bc7ca42c6e5c1?ds=inline;hp=--cc Empty author may be presented by svn as an empty string or a null value. Signed-off-by: Junio C Hamano --- 35c636ec487d0d5c38e0ce8d3d7bc7ca42c6e5c1 diff --git a/git-svnimport.perl b/git-svnimport.perl index 38ac732ca9..26dc454795 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"