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

Re: how to skip branches on git svn clone/fetch when there are errors

From
DSDaniele Segato <daniele.bilug@gmail.com>
Date
Sep 5, 2009, 08:55 UTC
Message-ID
<1252140904.8992.6.camel@localhost>
In-Reply-To
<20090905061657.GC22272@dcvr.yhbt.net>
Il giorno ven, 04/09/2009 alle 23.16 -0700, Eric Wong ha scritto:
Show 18 quoted lines
> It's unfortunate, but there's not yet an exclude/ignore directive
> when globbing.  You'll have to change your $GIT_CONFIG to only
> have a list of branches you want, something like this:
> 
> [svn-remote "svn"]
> 	url = svn://svn.mydomain.com
> 	fetch = path/to/repo/HEAD/root:refs/remotes/svn/trunk
> 
> 	; have one "fetch" line for every branch except the one you want
> 	fetch = path/to/repo/BRANCHES/a/root:refs/remotes/svn/a
> 	fetch = path/to/repo/BRANCHES/b/root:refs/remotes/svn/b
> 	fetch = path/to/repo/BRANCHES/c/root:refs/remotes/svn/c
> 
> 	; you can do the same for tags if you have the same problem
> 	tags = path/to/repo/TAGS/*/root:refs/remotes/svn/tags/*
> 
> But you shouldn't have to worry about having "fetch" entries for
> stale/old branches/tags you've already imported.

I see... That means that then I'll have to manually add new created branches, right?

well... I tried to avoid this kind of configuration for weeks :) but that's probably my best way with that repo....

thank you, Daniele

Previous: Eric WongNext: Eric Wong
Message 3 of 9 in “how to skip branches on git svn clone/fetch when there are errors”
  1. Daniele SegatoAug 31, 2009
  2. Eric WongSep 5, 2009
  3. Daniele SegatoSep 5, 2009
  4. Eric WongSep 6, 2009
  5. Daniele SegatoSep 7, 2009
  6. Daniele SegatoSep 7, 2009
  7. Daniele SegatoSep 7, 2009
  8. Paolo CiarrocchiSep 7, 2009
  9. Daniele SegatoSep 7, 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.