mirror of
https://github.com/git/git.git
synced 2024-11-23 18:05:29 +08:00
git-svn: allow SVN:: lib users to track the root of the repository (again)
I broke this again in 747fa12cef
.
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>
This commit is contained in:
parent
f64d7fd267
commit
efe4631def
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user