From 35cda061640c26371d5841099ad30c6968d510b2 Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Wed, 9 Jan 2008 01:37:20 -0500 Subject: [PATCH] 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 Acked-by: Eric Wong Signed-off-by: Junio C Hamano --- git-svn.perl | 1 + 1 file changed, 1 insertion(+) diff --git a/git-svn.perl b/git-svn.perl index 3308fe1e3..d5316eb6d 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -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; -- 2.30.2