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

Re: git svn clone, a non-standard layout question

From
PBPeter Baumann <waste.manager@gmx.de>
Date
Aug 13, 2012, 13:38 UTC
Message-ID
<20120813133847.GE10899@m62s10.vlinux.de>
In-Reply-To
<CANW+GuRoQJtZW6ZCwDQEj9OQD4C3BqxqX--2JV+=jkddagQgig@mail.gmail.com>
On Mon, Aug 13, 2012 at 09:29:53AM -0400, Christopher Marshall wrote:
Show 39 quoted lines
> >
> > I had a similar problem, but I solved it using "ignore-paths" and "ignore-refs".
> > If I remember correctly, you need to set both to ignore bdir directly without
> > ignoring b3, b4,...
> >
> > For ignore-refs, pls see cdb51a13c3cf4830d499d1138160eacdd2b8aa46, as it is currently
> > undocumented.
> >
> > So I would try experimenting with the following settings:
> >
> > [svn-remote "svn"]
> >         url = file:///home/chris/programs/svn/repo
> >         fetch = trunk:refs/remotes/svn/trunk
> >         tags = tags/*:refs/remotes/svn/tags/*
> >         branches = branches/{b1,b2}:refs/remotes/svn/*
> >         branches = branches/bdir/{b3,b4}:refs/remotes/svn/*
> >
> >         # Operates on the imported git branches
> >         ignore-refs  = ^refs/remotes/bdir$
> >
> >         # Operates on the SVN branches; you might try it first without this statement
> >         ignore-paths = ^branches/bdir$
> > --
> 
> Peter:
> 
> Thanks for the advice.  I tried this:
> 
> [svn-remote "svn"]
>         url = file:///home/chris/programs/svn/repo
>         fetch = trunk:refs/remotes/svn/trunk
>         branches = branches/*:refs/remotes/svn/*
>         tags = tags/*:refs/remotes/svn/tags/*
>         branches = branches/bdir/*:refs/remotes/svn/bdir2/*
>         ignore-paths  = ^branches/bdir$
>         ignore-refs  = ^refs/remotes/bdir$
> 
> It doesn't seem to change anything.
> 

You need a git version new enough to include cdb51a13c3cf4830d499d1138160eacdd2b8aa46, otherwise it won't have any effect and will be silently ignored.

Show 6 quoted lines
> Chris
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
Previous: Christopher MarshallNext: Christopher Marshall
Message 4 of 5 in “git svn clone, a non-standard layout question”
  1. Christopher MarshallAug 13, 2012
  2. Peter BaumannAug 13, 2012
  3. Christopher MarshallAug 13, 2012
  4. Peter BaumannAug 13, 2012
  5. Christopher MarshallAug 13, 2012

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.