]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-svnimport.perl
Fix installation of templates on ancient systems.
[thirdparty/git.git] / git-svnimport.perl
index 38ac732ca9b677a5647a96db44f7133b47db0648..26dc45479532a78febb511bf36017d6106513e70 100755 (executable)
@@ -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"