Trim leading / off of paths in git-svn prop_walk
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>
Kevin Ballard committed
Jan 9, 2008 at 01:37 UTC
35cda061640c26371d5841099ad30c6968d510b2
1 file changed
+1
git-svn.perl
+1
@@ -1858,6 +1858,7 @@ sub rel_path {
1858
sub prop_walk {
1859
my ($self, $path, $rev, $sub) = @_;
1860
1861
+ $path =~ s#^/##;
1862
my ($dirent, undef, $props) = $self->ra->get_dir($path, $rev);
1863
$path =~ s#^/*#/#g;
1864
my $p = $path;