diff options
| author | Eric Wong <normalperson@yhbt.net> | 2013-01-24 00:23:44 +0000 |
|---|---|---|
| committer | Eric Wong <normalperson@yhbt.net> | 2013-01-24 10:21:23 +0000 |
| commit | 1b67bef25606471817d9b0a61a923568de0daac8 (patch) | |
| tree | 72994628c2f41d976392a036756fead68a4a9dd9 /perl/Git/SVN/Editor.pm | |
| parent | Merge git://ozlabs.org/~paulus/gitk (diff) | |
| download | git-1b67bef25606471817d9b0a61a923568de0daac8.tar.gz git-1b67bef25606471817d9b0a61a923568de0daac8.zip | |
git-svn: cleanup sprintf usage for uppercasing hex
We do not need to call uc() separately for sprintf("%x")
as sprintf("%X") is available.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Diffstat (limited to '')
| -rw-r--r-- | perl/Git/SVN/Editor.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl/Git/SVN/Editor.pm b/perl/Git/SVN/Editor.pm index 3db152155c..fa0d3c6cdd 100644 --- a/perl/Git/SVN/Editor.pm +++ b/perl/Git/SVN/Editor.pm @@ -146,7 +146,7 @@ sub url_path { my ($self, $path) = @_; if ($self->{url} =~ m#^https?://#) { # characters are taken from subversion/libsvn_subr/path.c - $path =~ s#([^~a-zA-Z0-9_./!$&'()*+,-])#uc sprintf("%%%02x",ord($1))#eg; + $path =~ s#([^~a-zA-Z0-9_./!$&'()*+,-])#sprintf("%%%02X",ord($1))#eg; } $self->{url} . '/' . $self->repo_path($path); } |
