Multiple svn projects into one git repository?
- by trondgzi
Hi,
I have started to use git-svn for some of my work to be able to do local commits. This works great for projects that use standard svn layout. Recently I started working on a Java project that is split into multiple connected modules (20-25), and each module have its own root folder in the same svn repo with its own trunk/branches/tags.
svnrepo/
module-1
trunk
branches
tags
module-N
trunk
branches
tags
I have cloned each and every module with git svn clone -s /path/to/svnrepo/module[1-N]. The "problem" is that when I want to do git svn rebase on all modules i have to do it N times.
I have tried to do git svn clone /path/to/svnrepo/ do avoid doing the rebase operation N times, but that leaves me with a directory layout that is the same as in the svn repo.
Is there a way that I can track all the trunks of all modules in one git repo? So that I get a directory layout like this within my git repository:
module-1
module-2
module-N