summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Walter <swalter@lpdev.prtdev.lexmark.com>2010-08-03 23:21:25 (GMT)
committerEric Wong <normalperson@yhbt.net>2010-08-05 06:33:23 (GMT)
commit46cb16fb599451f417e7cd668e77866f5aa03fc0 (patch)
tree8938d12b66591e1d240785c29b273c911987ab5f
parent181264ad590ffef9d956fdd023369869c2d0a55f (diff)
downloadgit-46cb16fb599451f417e7cd668e77866f5aa03fc0.zip
git-46cb16fb599451f417e7cd668e77866f5aa03fc0.tar.gz
git-46cb16fb599451f417e7cd668e77866f5aa03fc0.tar.bz2
git svn: URL-decode left-hand side of svn refspec
This change allows git-svn to handle an URL with colons in the path [ew: rewritten to use uri_decode() function] Signed-off-by: Eric Wong <normalperson@yhbt.net>
-rwxr-xr-xgit-svn.perl2
1 files changed, 2 insertions, 0 deletions
diff --git a/git-svn.perl b/git-svn.perl
index 8d2ef3d..34884b8 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -1820,6 +1820,7 @@ sub read_all_remotes {
die("svn-remote.$remote: remote ref '$remote_ref' "
. "must start with 'refs/'\n")
unless $remote_ref =~ m{^refs/};
+ $local_ref = uri_decode($local_ref);
$r->{$remote}->{fetch}->{$local_ref} = $remote_ref;
$r->{$remote}->{svm} = {} if $use_svm_props;
} elsif (m!^(.+)\.usesvmprops=\s*(.*)\s*$!) {
@@ -1832,6 +1833,7 @@ sub read_all_remotes {
die("svn-remote.$remote: remote ref '$remote_ref' ($t) "
. "must start with 'refs/'\n")
unless $remote_ref =~ m{^refs/};
+ $local_ref = uri_decode($local_ref);
my $rs = {
t => $t,
remote => $remote,