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

git-svn: multiple fetch lines

From
Nathan Gray <n8gray@n8gray.org>
Date
Dec 16, 2011, 19:51 UTC
Message-ID
<CA+7g9Jxd3mhbra34f+MiJRt36Lb6gVHi1nOCP8Zo5y-G9jB3qA@mail.gmail.com>
Hello,

I'm in a conversation with the support fellow of the very nice Tower git interface for OS X and we need clarification on a point. Does git-svn explicitly support multiple "fetch =" lines in an svn-remote section or is it just an accident that it works? My belief is that such support is intended and his is that it is accidental.

You can see a more detailed explanation of why you would want to use multiple fetch lines on this fellow's blog post:

http://davegoodell.blogspot.com/2009/04/multiple-remote-branches-in-git-svn.html

My company's svn server layout is a bit of a mess and to work around that I've been using multiple "fetch" lines in git-svn's config:

[svn-remote "svn"]
    url = https://...
    # The trunk
    fetch = foo/trunk/Product:refs/remotes/trunk
    # Some individual branches from messy directories that I can't use globs on
    fetch = foo/branches/Developers/Nathan/Project/Product:refs/remotes/product-orig
    fetch = foo/branches/august-demo/Product:refs/remotes/august-demo
    # A well-organized branches folder that I can use a glob for
    branches = foo/branches/Product/*:refs/remotes/branches/*
    # etc...

Tower doesn't currently support such configurations and I'd like to convince them that this is a perfectly sensible thing to do.

Thanks, -Nathan

-- 
HexaLex: A New Angle on Crossword Games for iPhone and iPod Touch
http://hexalex.com
On The App Store: http://bit.ly/8Mj1CU
On Facebook: http://bit.ly/9MIJiV
On Twitter: http://twitter.com/hexalexgame
http://n8gray.org
Next: Jonathan Nieder
Message 1 of 11 in “git-svn: multiple fetch lines”
  1. Nathan GrayDec 16, 2011
  2. Jonathan NiederDec 17, 2011
  3. Nathan GrayDec 19, 2011
  4. 0/2 Re: git-svn: multiple fetch linesJonathan Nieder, Dec 20, 2011
  5. 1/2 git-svn: multiple fetch/branches/tags keys are supportedJonathan Nieder, Dec 20, 2011
  6. Nathan GrayDec 20, 2011
  7. 2/2 git-svn: clarify explanation of --destination argumentJonathan Nieder, Dec 20, 2011
  8. 0/2 git-svn: improve documentation of multiple fetch linesJonathan Nieder, May 13, 2013
  9. 1/2 git-svn: multiple fetch/branches/tags keys are supportedJonathan Nieder, May 13, 2013
  10. 2/2 git-svn: clarify explanation of --destination argumentJonathan Nieder, May 13, 2013
  11. Eric WongMay 15, 2013

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.