summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 17a10f3)
raw | patch | inline | side by side (parent: 17a10f3)
author | Eric Wong <normalperson@yhbt.net> | |
Fri, 11 Aug 2006 18:11:29 +0000 (11:11 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 11 Aug 2006 23:21:51 +0000 (16:21 -0700) |
I'm not sure if anybody has hit this (besides me), but this
fixes the problem where I ran into while attempting to import a
small repo at the root level: I ended up with all the commits, but
with no file/tree changes at all throughout the entire history.
Also, fix a warning if the commit message is not defined for revision 0.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
fixes the problem where I ran into while attempting to import a
small repo at the root level: I ended up with all the commits, but
with no file/tree changes at all throughout the entire history.
Also, fix a warning if the commit message is not defined for revision 0.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-svn.perl | patch | blob | history |
diff --git a/git-svn.perl b/git-svn.perl
index 3327ad36444cb00ff01d6eed69bcab2767127e96..7d9839e7ac53a3fa6a9755eb5fc82a3a6cff501e 100755 (executable)
--- a/git-svn.perl
+++ b/git-svn.perl
sub libsvn_get_file {
my ($gui, $f, $rev) = @_;
my $p = $f;
- return unless ($p =~ s#^\Q$SVN_PATH\E/##);
+ if (length $SVN_PATH > 0) {
+ return unless ($p =~ s#^\Q$SVN_PATH\E/##);
+ }
my ($hash, $pid, $in, $out);
my $pool = SVN::Pool->new;
if (defined $_authors && ! defined $users{$author}) {
die "Author: $author not defined in $_authors file\n";
}
+ $msg = '' if ($rev == 0 && !defined $msg);
return { revision => $rev, date => "+0000 $Y-$m-$d $H:$M:$S",
author => $author, msg => $msg."\n", parents => $parents || [] }
}