Skip to content

Commit a8033df

Browse files
committed
Merge git://git.bogomips.org/git-svn
* git://git.bogomips.org/git-svn: git-svn: do not escape certain characters in paths
2 parents 28f04f3 + cc30462 commit a8033df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

perl/Git/SVN/Editor.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ sub repo_path {
145145
sub url_path {
146146
my ($self, $path) = @_;
147147
if ($self->{url} =~ m#^https?://#) {
148-
$path =~ s!([^~a-zA-Z0-9_./-])!uc sprintf("%%%02x",ord($1))!eg;
148+
# characters are taken from subversion/libsvn_subr/path.c
149+
$path =~ s#([^~a-zA-Z0-9_./!$&'()*+,-])#uc sprintf("%%%02x",ord($1))#eg;
149150
}
150151
$self->{url} . '/' . $self->repo_path($path);
151152
}

0 commit comments

Comments
 (0)