Skip to content

Commit

Permalink
Trim leading / off of paths in git-svn prop_walk
Browse files Browse the repository at this point in the history
prop_walk adds a leading / to all subdirectory paths. Unfortunately
this causes a problem when the remote repo lives in a subdirectory itself,
as the leading / causes subsequent PROPFIND calls to be executed on
the wrong path. Trimming the / before calling the PROPFIND fixes this problem.

Signed-off-by: Kevin Ballard <kevin@sb.org>
Acked-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Kevin Ballard authored and Junio C Hamano committed Jan 9, 2008
1 parent 08359b0 commit 35cda06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions git-svn.perl
Original file line number Diff line number Diff line change
Expand Up @@ -1858,6 +1858,7 @@ sub rel_path {
sub prop_walk {
my ($self, $path, $rev, $sub) = @_;

$path =~ s#^/##;
my ($dirent, undef, $props) = $self->ra->get_dir($path, $rev);
$path =~ s#^/*#/#g;
my $p = $path;
Expand Down

0 comments on commit 35cda06

Please sign in to comment.