diff options
author | Kevin Ballard <kevin@sb.org> | 2008-01-09 07:37:20 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-01-09 23:56:49 +0100 |
commit | 35cda061640c26371d5841099ad30c6968d510b2 (patch) | |
tree | 09225500858c49261157a5a39d8398253cf05972 /git-svn.perl | |
parent | shortlog: mention the "-e" option in the usage (diff) | |
download | git-35cda061640c26371d5841099ad30c6968d510b2.tar.xz git-35cda061640c26371d5841099ad30c6968d510b2.zip |
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 '')
-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 3308fe1e3f..d5316eb6da 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; |