aboutsummaryrefslogtreecommitdiff
path: root/git-svnimport.perl
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2006-07-03 00:21:00 +0200
committerJunio C Hamano <junkio@cox.net>2006-07-02 17:07:45 -0700
commit35c636ec487d0d5c38e0ce8d3d7bc7ca42c6e5c1 (patch)
tree8cf32cc2c63ed8fea7f6b348f700af66b1ba4c4f /git-svnimport.perl
parent02d3dca3bff6a67dead9f5b97dfe3576fe5b14e5 (diff)
downloadgit-35c636ec487d0d5c38e0ce8d3d7bc7ca42c6e5c1.tar.gz
git-35c636ec487d0d5c38e0ce8d3d7bc7ca42c6e5c1.tar.xz
Empty author may be presented by svn as an empty string or a null value.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-svnimport.perl')
-rwxr-xr-xgit-svnimport.perl2
1 files changed, 1 insertions, 1 deletions
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"