зеркало из https://github.com/microsoft/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 <kevin@sb.org> Acked-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
08359b0067
Коммит
35cda06164
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче