From: Steven Walter Date: Tue, 3 Aug 2010 23:21:25 +0000 (-0400) Subject: git svn: URL-decode left-hand side of svn refspec X-Git-Tag: v1.7.3-rc0~94^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=46cb16fb599451f417e7cd668e77866f5aa03fc0;p=git.git 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 --- diff --git a/git-svn.perl b/git-svn.perl index 8d2ef3d16..34884b8fc 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,