From 35c636ec487d0d5c38e0ce8d3d7bc7ca42c6e5c1 Mon Sep 17 00:00:00 2001 From: Robin Rosenberg Date: Mon, 3 Jul 2006 00:21:00 +0200 Subject: [PATCH] Empty author may be presented by svn as an empty string or a null value. Signed-off-by: Junio C Hamano --- git-svnimport.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.26.2