I need to clone an SVN repository to git. The SVN repository is structured as if it's a repository of repositories, like so:
SVNRepo
|____ProjectA
| |___branches
| |___tags
| |___trunk
| file
|____ProjectB
| |___branches
| |___tags
| |___trunk
file
I need to clone the repository so that I end up with a single git repository, without the svn specific folders (branches, tags, trunk). I originally dumped then split the SVN repo into separate repos for each project and migrated to git using git svn clone with the --stdlayout command. This worked but came with it's own issues that have been vetoed by our team.
I tried the git svn clone with the --stdlayout command but that doesn't work. I end up with an empty git repo with 2 commits (out of hundreds) and no actual files. There were no errors so I'm not sure what happened.
Trying git svn clone without the --stdlayout sort of works, in that I get a single git repo with all files and history. However, I still have all of the branches, tags and trunk folders which I've like to remove.
I've considered dumping the SVN repo and using sed to edit the binary but that seems like a lot of work. I imagine someone else has encountered this and solved the problem but can't find anything that works.