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

Re: [PATCH] Re: git-svn fetch doesn't like spaces in branch names

From
Alex Riesen <raa.lkml@gmail.com>
Date
Nov 8, 2007, 07:29 UTC
Message-ID
<20071108072918.GC3170@steel.home>
In-Reply-To
<B28A099B-1BC8-4CED-856A-5FFD7F6711FC@mac.com>
Michael J. Cohen, Thu, Nov 08, 2007 01:53:07 +0100:
Show 25 quoted lines
>> mini:TextMateBundles mjc$ git-svn fetch
>> Found possible branch point: 
>> http://macromates.com/svn/Bundles/trunk/Tools/Dialog PlugIn => 
>> http://macromates.com/svn/Bundles/branches/Dialog PlugIn Completion Menu, 
>> 8089
>> Initializing parent: Dialog PlugIn Completion Menu@8089
>> Bad URL passed to RA layer: Malformed URL for repository at 
>> /opt/local/bin/git-svn line 1607
>>
>> looks like that might need to be %20 ?
>
>
> Hacky, but it works.
>
> Signed-off-by: Michael J. Cohen <mjc@cruiseplanners.com>
>
> diff --git a/git-svn.perl b/git-svn.perl
> index dd93e32..5dc3b9c 100755
> --- a/git-svn.perl
> +++ b/git-svn.perl
> @@ -1976,6 +1976,7 @@ sub find_parent_branch {
> 	my $r = $i->{copyfrom_rev};
> 	my $repos_root = $self->ra->{repos_root};
> 	my $url = $self->ra->{url};
> +	$branch_from =~ s@([\s])@sprintf("%%%02X", ord($1))@seg;
You don't need "[" and "]".
Previous: Michael J. CohenNext: Benoit Sigoure
Message 3 of 5 in “git-svn fetch doesn't like spaces in branch names”
  1. Michael J. CohenNov 8, 2007
  2. Re: git-svn fetch doesn't like spaces in branch namesMichael J. Cohen, Nov 8, 2007
  3. Alex RiesenNov 8, 2007
  4. Benoit SigoureNov 8, 2007
  5. git-svn: support for funky branch and project names over HTTP(S)Eric Wong, Nov 12, 2007

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.