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

Re: [PATCH] git svn clone -s was not prefixing 'branches/'

From
EWEric Wong <normalperson@yhbt.net>
Date
Jan 17, 2009, 10:54 UTC
Message-ID
<20090117105427.GA15801@dcvr.yhbt.net>
In-Reply-To
<1232050647-2870-1-git-send-email-snowblink@gmail.com>
Jonathan Lim <snowblink@gmail.com> wrote:
> All branches in the subversion repository would appear at the same
> level as trunk.  The should now appear with a 'branches/' prefix.
> 
> Signed-off-by: Jonathan Lim <snowblink@gmail.com>

This is too ugly for the common existing cases. For the rare case where this could lead to a namespace conflict[1], it's possible to work around it by editing .git/config.

I would accept a --tags-prefix= and --branches-prefix= patch to make this possible w/o having to edit .git/config, but I don't want the default prefixes changed.

Thanks,
[1] - "/branches/trunk" vs "/trunk", which I've yet to see evidence of...
Show 16 quoted lines
> ---
>  git-svn.perl |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/git-svn.perl b/git-svn.perl
> index ad01e18..17d65cb 100755
> --- a/git-svn.perl
> +++ b/git-svn.perl
> @@ -789,7 +789,7 @@ sub cmd_multi_init {
>  	}
>  	return unless defined $_branches || defined $_tags;
>  	my $ra = $url ? Git::SVN::Ra->new($url) : undef;
> -	complete_url_ls_init($ra, $_branches, '--branches/-b', $_prefix);
> +	complete_url_ls_init($ra, $_branches, '--branches/-b', $_prefix . 'branches/');
>  	complete_url_ls_init($ra, $_tags, '--tags/-t', $_prefix . 'tags/');
>  }
Next: Jon Lim
Message 1 of 4 in “Re: [PATCH] git svn clone -s was not prefixing 'branches/'”
  1. Eric WongJan 17, 2009
  2. Jon LimJan 17, 2009
  3. Björn SteinbrinkJan 17, 2009
  4. Eric WongJan 18, 2009

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.