Skip to content

Commit

Permalink
Empty author may be presented by svn as an empty string or a null value.
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Robin Rosenberg authored and Junio C Hamano committed Jul 3, 2006
1 parent 02d3dca commit 35c636e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-svnimport.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 35c636e

Please sign in to comment.