Skip to content

Commit 56e26d0

Browse files
committed
svn: fix path strip for branches
When checking path against ignore-include regexps $path argument is given relatively to svn repo root. This results in unwanted prefix which is path to svn branch location and should be stripped before testing path against ignore-include regexps Signed-off-by: Pavel Dydyshka <paul.dydyshko@gmail.com>
1 parent 419c72c commit 56e26d0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

perl/Git/SVN/Fetcher.pm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ sub in_dot_git {
123123
# This will also check whether the path is explicitly included
124124
sub is_path_ignored {
125125
my ($self, $path) = @_;
126+
if ($self->{path_strip}) {
127+
$path =~ s/$self->{path_strip}//;
128+
$path =~ s{^/}{};
129+
}
126130
return 1 if in_dot_git($path);
127131
return 1 if defined($self->{ignore_regex}) &&
128132
$path =~ m!$self->{ignore_regex}!;

0 commit comments

Comments
 (0)