Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge git://git.bogomips.org/git-svn
author
Junio C Hamano
<gitster@pobox.com>
Mon, 21 Jan 2013 01:08:46 +0000
(17:08 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 21 Jan 2013 01:08:46 +0000
(17:08 -0800)
* git://git.bogomips.org/git-svn:
git-svn: do not escape certain characters in paths
perl/Git/SVN/Editor.pm
patch
|
blob
|
history
raw
(from parent 1:
28f04f3
)
diff --git
a/perl/Git/SVN/Editor.pm
b/perl/Git/SVN/Editor.pm
index 178920c852c917062fac7cfe0f3ea8bc6041944d..3db152155c62fb43b6243c10ce25cc193895afe3 100644
(file)
--- a/
perl/Git/SVN/Editor.pm
+++ b/
perl/Git/SVN/Editor.pm
@@
-145,7
+145,8
@@
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;
+ # characters are taken from subversion/libsvn_subr/path.c
+ $path =~ s#([^~a-zA-Z0-9_./!$&'()*+,-])#uc sprintf("%%%02x",ord($1))#eg;
}
$self->{url} . '/' . $self->repo_path($path);
}