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

Git-SVN & subdirectory branches

From
Brian Gernhardt <brian@gernhardtsoftware.com>
Date
Aug 27, 2010, 16:37 UTC
Message-ID
<F393D37F-9BDE-4F29-94E9-806AF88D1A30@gernhardtsoftware.com>
I'm working on creating a git mirror of the MINIX 3 repository.  I'm encountering a problem with the fact that the branches and tags often but not always are based on a subdirectory of trunk.  It appears that when git-svn encounters one of these branches it starts over from revision 1.  Is there a good way to deal with this or should I just let git-svn clone it as it will and use something like filter-branch to clean it up?  (Note that I intend this to be an ongoing mirror so any solution has to let git-svn work properly afterwords.)
In particular, MINIX's trunk contains a bigports and a src subdirectory and some branches (and tags) have both subdirectories, but more often they branch just the src (kernel and servers) directory.
For visual learners:
/trunk
  /bigports
  /src
    /boot
    /commands
    ...
/branches
  /R3.1.0
    /bigports
    /src
  /R3.1.7
    /boot
    /commands
    ...
The SVN repo can be browsed at https://gforge.cs.vu.nl/gf/project/minix/scmsvn/?action=browse&path=/ but people should be careful trying to clone it fully using git-svn due to the issue above.  I finally just used svnsync to create a local copy to clone from.
~~ Brian
Next: Jonathan Nieder
Message 1 of 2 in “Git-SVN & subdirectory branches”
  1. Brian GernhardtAug 27, 2010
  2. Jonathan NiederAug 28, 2010

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.