# [PATCH] Empty author may be presented by svn as an empty string or a null value.

2 messages from 2006-07-02 to 2006-07-03. Participants: Robin Rosenberg, Junio C Hamano.
Thread: https://gitlist.dev/t/4741

## Robin Rosenberg, 2006-07-02 22:21

Subject: [PATCH] Empty author may be presented by svn as an empty string or a null value.
Message-ID: <20060702222100.2863.72633.stgit@h15n1fls34o811.telia.com>
URL: https://gitlist.dev/e/20060702222100.2863.72633.stgit%40h15n1fls34o811.telia.com

```
From: Robin Rosenberg <robin.rosenberg@dewire.com>


---

 git-svnimport.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/git-svnimport.perl b/git-svnimport.perl
index 38ac732..26dc454 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"

```

## Junio C Hamano, 2006-07-03 00:07

Subject: Re: [PATCH] Empty author may be presented by svn as an empty string or a null value.
Message-ID: <7vwtavzh2b.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vwtavzh2b.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <20060702222100.2863.72633.stgit@h15n1fls34o811.telia.com>

```
Thanks.

```
