We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0d260f9 + 9162b86 commit c4994ceCopy full SHA for c4994ce
git-svn.perl
@@ -2351,7 +2351,10 @@ sub match_paths {
2351
if (my $path = $paths->{"/$self->{path}"}) {
2352
return ($path->{action} eq 'D') ? 0 : 1;
2353
}
2354
- $self->{path_regex} ||= qr/^\/\Q$self->{path}\E\//;
+ my $repos_root = $self->ra->{repos_root};
2355
+ my $extended_path = $self->{url} . '/' . $self->{path};
2356
+ $extended_path =~ s#^\Q$repos_root\E(/|$)##;
2357
+ $self->{path_regex} ||= qr/^\/\Q$extended_path\E\//;
2358
if (grep /$self->{path_regex}/, keys %$paths) {
2359
return 1;
2360
0 commit comments