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>
Steven Walter committed
Aug 3, 2010 at 19:21 UTC
46cb16fb599451f417e7cd668e77866f5aa03fc0
1 file changed
+2
git-svn.perl
+2
@@ -1820,6 +1820,7 @@ sub read_all_remotes {
1820
die("svn-remote.$remote: remote ref '$remote_ref' "
1821
. "must start with 'refs/'\n")
1822
unless $remote_ref =~ m{^refs/};
1823
+ $local_ref = uri_decode($local_ref);
1824
$r->{$remote}->{fetch}->{$local_ref} = $remote_ref;
1825
$r->{$remote}->{svm} = {} if $use_svm_props;
1826
} elsif (m!^(.+)\.usesvmprops=\s*(.*)\s*$!) {
@@ -1832,6 +1833,7 @@ sub read_all_remotes {
1833
die("svn-remote.$remote: remote ref '$remote_ref' ($t) "
1834
. "must start with 'refs/'\n")
1835
unless $remote_ref =~ m{^refs/};
1836
+ $local_ref = uri_decode($local_ref);
1837
my $rs = {
1838
t => $t,
1839
remote => $remote,