summaryrefslogtreecommitdiff
path: root/git-svnimport.perl
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2006-07-02 22:21:00 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-07-03 00:07:45 (GMT)
commit35c636ec487d0d5c38e0ce8d3d7bc7ca42c6e5c1 (patch)
tree8cf32cc2c63ed8fea7f6b348f700af66b1ba4c4f /git-svnimport.perl
parent02d3dca3bff6a67dead9f5b97dfe3576fe5b14e5 (diff)
downloadgit-35c636ec487d0d5c38e0ce8d3d7bc7ca42c6e5c1.zip
git-35c636ec487d0d5c38e0ce8d3d7bc7ca42c6e5c1.tar.gz
git-35c636ec487d0d5c38e0ce8d3d7bc7ca42c6e5c1.tar.bz2
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 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"