git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Problems with git-svn and space in the URL

From
Kkarl <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.

Previous: Marc Van Olmen
Message 3 of 3 in “Problems with git-svn and space in the URL”
  1. Marc Van OlmenMay 31, 2010
  2. Marc Van OlmenMay 31, 2010
  3. karlSep 28, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.