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

Re: Branches with git-svn

From
Björn Steinbrink <b.steinbrink@gmx.de>
Date
Sep 19, 2008, 13:10 UTC
Message-ID
<20080919131045.GA14301@atjola.homenet>
In-Reply-To
<48D39C7B.9020709@drmicha.warpmail.net>
On 2008.09.19 14:35:07 +0200, Michael J Gruber wrote:
Show 13 quoted lines
> Xavier Claessens venit, vidit, dixit 19.09.2008 12:15:
> > I created a git repository using "git-svn clone <url>" a long time ago.
> > But now I realise that I don't get SVN branches into my git repository.
> > I see that the doc tells to use "git clone -t tags -b branches -T trunk
> > <url>" to create the repository. If I create a new repository with that
> > command, I get branches and tags.
> > 
> > However I have lots of contributors having branches based on my git
> > repository. Is there a way to add SVN branch to my existing git repo?
> 
> If you haven't use those options back then, then what was the svn repo
> structure - no trunk, just main?
> Did you change the structure now?

No, he was just using "git svn clone svn://host/repo/trunk", ie. single branch tracking. We solved that on #git, adjusting the url and fetch line, as well as adding the branches and tags line in the svn-remote section in the config.

Björn
Previous: Michael J GruberNext: Xavier Claessens
Message 3 of 4 in “Branches with git-svn”
  1. Xavier ClaessensSep 19, 2008
  2. Michael J GruberSep 19, 2008
  3. Björn SteinbrinkSep 19, 2008
  4. Xavier ClaessensSep 19, 2008

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.