git svn: avoid escaping '/' when renaming/copying files
[gitweb.git] / git-svn.perl
index 9808597a1879a509eb9b896d46d0e69c252786f8..fd7232cf6d6fcff0042a8251bbe604d02245a9a5 100755 (executable)
@@ -4005,7 +4005,7 @@ sub repo_path {
 sub url_path {
        my ($self, $path) = @_;
        if ($self->{url} =~ m#^https?://#) {
-               $path =~ s/([^~a-zA-Z0-9_.-])/uc sprintf("%%%02x",ord($1))/eg;
+               $path =~ s!([^~a-zA-Z0-9_./-])!uc sprintf("%%%02x",ord($1))!eg;
        }
        $self->{url} . '/' . $self->repo_path($path);
 }