From: Eric Wong Date: Sun, 26 Nov 2006 01:38:41 +0000 (-0800) Subject: git-svn: allow SVN:: lib users to track the root of the repository (again) X-Git-Tag: v1.5.0-rc0~220 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=efe4631def181d32f932672a7ea31e52ee0ab308;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/git-svn.perl b/git-svn.perl index 0a47b1f9f..de4e74a60 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -2919,8 +2919,12 @@ sub libsvn_fetch { my $p = $SVN->{svn_path}; foreach my $f (keys %$paths) { my $m = $paths->{$f}->action(); - $f =~ s#^/\Q$p\E/##; - next if $f =~ m#^/#; + if (length $p) { + $f =~ s#^/\Q$p\E/##; + next if $f =~ m#^/#; + } else { + $f =~ s#^/##; + } if ($m =~ /^[DR]$/) { print "\t$m\t$f\n" unless $_q; process_rm($gui, $last_commit, $f);