git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-svn: URL-decode the left-hand side of an svn refspec
@ 2010-08-03 23:21 Steven Walter
  2010-08-04  8:38 ` Eric Wong
  0 siblings, 1 reply; 4+ messages in thread
From: Steven Walter @ 2010-08-03 23:21 UTC (permalink / raw)
  To: git, normalperson; +Cc: Steven Walter

From: Steven Walter <swalter@lpdev.prtdev.lexmark.com>

This change allows git-svn to handle an URL with colons in the path
---
 git-svn.perl |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/git-svn.perl b/git-svn.perl
index af70353..5d08dc6 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -1812,6 +1812,8 @@ sub read_all_remotes {
 			die("svn-remote.$remote: remote ref '$remote_ref' "
 			    . "must start with 'refs/'\n")
 				unless $remote_ref =~ m{^refs/};
+                        # local_ref is an URL, so url-decode it
+                        $local_ref =~ s/\%([A-Fa-f0-9]{2})/pack('C', hex($1))/seg;
 			$r->{$remote}->{fetch}->{$local_ref} = $remote_ref;
 			$r->{$remote}->{svm} = {} if $use_svm_props;
 		} elsif (m!^(.+)\.usesvmprops=\s*(.*)\s*$!) {
-- 
1.7.0.3.gaa64d.dirty

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-08-05  6:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-03 23:21 [PATCH] git-svn: URL-decode the left-hand side of an svn refspec Steven Walter
2010-08-04  8:38 ` Eric Wong
2010-08-04 12:37   ` Steven Walter
2010-08-05  6:40     ` Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).