Re: Problems with git-svn and space in the URL
- From
- karl <karl.okeeffe@kuluvalley.com>
- Date
- Sep 28, 2011, 14:04 UTC
- Message-ID
- <1317218681291-6840304.post@n2.nabble.com>
- In-Reply-To
- <0A790195-2DB1-4E1F-BAE2-9D65C261AD26@sky4studios.be>
I was able to work around this issue by patching git-svn.
I updated the url_path function to:
sub url_path {
my ($self, $path) = @_; my $url = $self->{url} . '/' . $self->repo_path($path);
if ($self->{url} =~ m#^https?://#) {
$url =~ s!([^~a-zA-Z0-9_./-])!uc sprintf("%%%02x",ord($1))!eg;
$url =~ s!^(https?)%3A//!$1://!;
}
$url
}This ensures that the spaces in the url are encoded correctly.
It seems to work for me, but hasn't been tested thoroughly.
-- View this message in context: http://git.661346.n2.nabble.com/Problems-with-git-svn-and-space-in-the-URL-tp5120361p6840304.html Sent from the git mailing list archive at Nabble.com.