Merge branch 'mg/work-tree-tests'
[gitweb.git] / perl / Git / SVN / Editor.pm
index d9d9bdf3319072f17c2fb0ec3cff9d50a4750fc7..4c4199afecac2c5fc6d918cf0d3b75449504b808 100644 (file)
@@ -144,11 +144,12 @@ sub repo_path {
 
 sub url_path {
        my ($self, $path) = @_;
+       $path = $self->repo_path($path);
        if ($self->{url} =~ m#^https?://#) {
                # characters are taken from subversion/libsvn_subr/path.c
                $path =~ s#([^~a-zA-Z0-9_./!$&'()*+,-])#sprintf("%%%02X",ord($1))#eg;
        }
-       $self->{url} . '/' . $self->repo_path($path);
+       $self->{url} . '/' . $path;
 }
 
 sub rmdirs {