summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 181264a)
raw | patch | inline | side by side (parent: 181264a)
author | Steven Walter <swalter@lpdev.prtdev.lexmark.com> | |
Tue, 3 Aug 2010 23:21:25 +0000 (19:21 -0400) | ||
committer | Eric Wong <normalperson@yhbt.net> | |
Thu, 5 Aug 2010 06:33:23 +0000 (06:33 +0000) |
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>
[ew: rewritten to use uri_decode() function]
Signed-off-by: Eric Wong <normalperson@yhbt.net>
git-svn.perl | patch | blob | history |
diff --git a/git-svn.perl b/git-svn.perl
index 8d2ef3d16f32d89a0d110a4539f9460436e0ce3b..34884b8fce37008ca05369dbd365573c7112ca21 100755 (executable)
--- a/git-svn.perl
+++ b/git-svn.perl
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*$!) {
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,