From: Kevin Ballard Date: Wed, 9 Jan 2008 06:37:20 +0000 (-0500) Subject: Trim leading / off of paths in git-svn prop_walk X-Git-Tag: v1.5.4-rc3~7 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=35cda061640c26371d5841099ad30c6968d510b2;p=git.git 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 --- 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;