diff options
author | Kevin Ballard <kevin@sb.org> | 2008-01-09 01:37:20 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-01-09 14:56:49 -0800 |
commit | 35cda061640c26371d5841099ad30c6968d510b2 (patch) | |
tree | 09225500858c49261157a5a39d8398253cf05972 /git-svn.perl | |
parent | 08359b0067a2ab9ced6e80d01a9787fa8f4d4639 (diff) | |
download | git-35cda061640c26371d5841099ad30c6968d510b2.tar.gz git-35cda061640c26371d5841099ad30c6968d510b2.tar.xz |
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>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-x | git-svn.perl | 1 |
1 files changed, 1 insertions, 0 deletions
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; |