summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 75b7dfb)
raw | patch | inline | side by side (parent: 75b7dfb)
author | Thomas Guyot-Sionnest <dermoth@aei.ca> | |
Tue, 22 Apr 2008 10:07:47 +0000 (06:07 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 23 Apr 2008 04:39:10 +0000 (21:39 -0700) |
When trying to import from svn using an author file, git-svn bails out
if it encounters a blank author. The attached patch changes this
behavior and allow using the author file with blanks authors.
I came across this bug while importing from a cvs2svn repo where the
initial revision (1) has a blank author. This doesn't break the behavior
of bailing out when an unknown author is encountered.
Acked-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
if it encounters a blank author. The attached patch changes this
behavior and allow using the author file with blanks authors.
I came across this bug while importing from a cvs2svn repo where the
initial revision (1) has a blank author. This doesn't break the behavior
of bailing out when an unknown author is encountered.
Acked-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-svn.perl | patch | blob | history |
diff --git a/git-svn.perl b/git-svn.perl
index e0434099ce6832871df7901f25a5c9f4ee477dd8..fcfe4eeaa0ed7ba9a7220e40f8e549c91db33f2e 100755 (executable)
--- a/git-svn.perl
+++ b/git-svn.perl
my ($author) = @_;
if (!defined $author || length $author == 0) {
$author = '(no author)';
- }
- if (defined $::_authors && ! defined $::users{$author}) {
+ } elsif (defined $::_authors && ! defined $::users{$author}) {
die "Author: $author not defined in $::_authors file\n";
}
$author;