We've got a unique setup we're trying to accommodate for a set of projects on a common platform. Basically, there's an environment that's common to all projects that needs to have its own repo. Inside that is a directory with all the core code for the platform. This also needs its own repo. Inside a subdirectory within the core repo, there are a handful of sibling directories corresponding to themes that a project might utilize. Each of these needs its own repo. Then, for a particular project, there's a subdirectory inside of the chosen theme that contains configurations and other custom code for the particular project. And this is the repo that we will work on most. Everything upstream from there are dependencies. It looks something like this:
Environment------------------------------------------------------- |--(some code) |--Core----------------------------------------------------------- | |--(some code and directories) | |--Themes directory | | |--Theme1--------------------------------------------------- | | |--Theme2 (chosen)------------------------------------------ | | | |--(some code and directories) | | | |--Project----------------------------------------------- | | | | |--(This is the code that changes for every project) | | | | ------------------------------------------------------ | | | --------------------------------------------------------- | | ------------------------------------------------------------ | --------------------------------------------------------------- ------------------------------------------------------------------ Is there a way to set this up so that a developer can pull down the project repo, and it will pull all the dependency repositories with it? We've been looking into submodules and subtrees, but we keep running into snags (and I admit that we may just be missing something here). I would greatly appreciate any pointers or guidance anybody has.
Thanks!