From: Steven Walter <stevenrwalter@gmail.com>
To: git@vger.kernel.org, normalperson@yhbt.net
Cc: Steven Walter <swalter@lpdev.prtdev.lexmark.com>
Subject: [PATCH] git-svn: URL-decode the left-hand side of an svn refspec
Date: Tue, 3 Aug 2010 19:21:25 -0400 [thread overview]
Message-ID: <1280877685-4928-1-git-send-email-stevenrwalter@gmail.com> (raw)
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
next reply other threads:[~2010-08-03 23:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-03 23:21 Steven Walter [this message]
2010-08-04 8:38 ` [PATCH] git-svn: URL-decode the left-hand side of an svn refspec Eric Wong
2010-08-04 12:37 ` Steven Walter
2010-08-05 6:40 ` Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1280877685-4928-1-git-send-email-stevenrwalter@gmail.com \
--to=stevenrwalter@gmail.com \
--cc=git@vger.kernel.org \
--cc=normalperson@yhbt.net \
--cc=swalter@lpdev.prtdev.lexmark.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).