@matheusbsbs / matheus-bagliano / commits / efe4631def
Fork 0

git-svn: allow SVN:: lib users to track the root of the repository (again)

I broke this again in 747fa12cef73b6ca04fffaddaad7326cf546cdea. Thanks to merlyn for pointing this out to me on IRC. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>

Eric Wong committed Nov 25, 2006 at 17:38 UTC efe4631def181d32f932672a7ea31e52ee0ab308
1 file changed +6 -2
git-svn.perl
+6 -2
@@ -2919,8 +2919,12 @@ sub libsvn_fetch {
2919 my $p = $SVN->{svn_path};
2920 foreach my $f (keys %$paths) {
2921 my $m = $paths->{$f}->action();
2922 - $f =~ s#^/\Q$p\E/##;
2923 - next if $f =~ m#^/#;
2922 + if (length $p) {
2923 + $f =~ s#^/\Q$p\E/##;
2924 + next if $f =~ m#^/#;
2925 + } else {
2926 + $f =~ s#^/##;
2927 + }
2928 if ($m =~ /^[DR]$/) {
2929 print "\t$m\t$f\n" unless $_q;
2930 process_rm($gui, $last_commit, $f);