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

Re: git-svn questions: how to clone/init non-standard layout branches/tags?

From
Benoit SIGOURE <tsuna@lrde.epita.fr>
Date
Nov 3, 2007, 10:56 UTC
Message-ID
<87597D7C-60FB-4CD8-BB27-7E870001A899@lrde.epita.fr>
In-Reply-To
<756D5EE2-FB2C-48DB-8242-14E154E34A9C@vicaya.com>
On Nov 3, 2007, at 9:19 AM, Luke Lu wrote:
Show 10 quoted lines
> There are a few svn repositories that use non-standard layout like  
> this:
>
> <path_to_project>/trunk
> <path_to_project>/production
> <path_to_project>/some_branch
>
> production and some_branch are indeed branched from trunk.
>
> 1. How do you init/clone svn repositories like that?

I seem to remember that you can pass more than one `-b' option to git- svn clone, so I'd basically do (untested): git svn clone <url> -T trunk -b production -b some_branch

> 2. Is there a way to add a new svn branch like that (say production  
> or some_branch) to an existing git-svn repository that has trunk  
> cloned?
I don't know, but that'd be great indeed.
-- 
Benoit Sigoure aka Tsuna
EPITA Research and Development Laboratory
Previous: Luke LuNext: Lars Hjemli
Message 2 of 9 in “git-svn questions: how to clone/init non-standard layout branches/tags?”
  1. Luke LuNov 3, 2007
  2. Benoit SIGOURENov 3, 2007
  3. Lars HjemliNov 3, 2007
  4. Luke LuNov 3, 2007
  5. Lars HjemliNov 3, 2007
  6. Luke LuNov 3, 2007
  7. Lars HjemliNov 3, 2007
  8. Luke LuNov 3, 2007
  9. Luke LuNov 7, 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.