Empty author may be presented by svn as an empty string or a null value.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Robin Rosenberg committed
Jul 3, 2006 at 00:21 UTC
35c636ec487d0d5c38e0ce8d3d7bc7ca42c6e5c1
1 file changed
+1
-1
git-svnimport.perl
+1
-1
@@ -534,7 +534,7 @@ sub commit {
534
my($author_name,$author_email,$dest);
535
my(@old,@new,@parents);
536
537
- if (not defined $author) {
537
+ if (not defined $author or $author eq "") {
538
$author_name = $author_email = "unknown";
539
} elsif (defined $users_file) {
540
die "User $author is not listed in $users_file\n"