Nesting a submodule inside of another...
- From
John Szakmeister <john@szakmeister.net>
- Date
- Jul 12, 2011, 12:01 UTC
- Message-ID
- <CAEBDL5XQDehUyqKoazxy+YVHh_2iAyt9aE-77H1jZg4oujMJgw@mail.gmail.com>
Hi all,
I've got a project where we have several frameworks involved, and
external modules we want to pull into the framework tree. We'd like
to make use of submodules and have something like this:
top-level/ <-- .gitmodules lives here
src/
framework1/ <-- a submodule
module/ <-- another submodule
framework2/ <-- a submodule
module2/ <-- another submoduleCurrently, git fails trying to do this. It's not happy about .gitmodules living at the top-level and nesting a submodule inside of another[1]. Is there a technical reason that this is not allowed? Limiting the traversal up the tree, etc.? I've worked around the lack of support to do this for now, but it would be really nice if we could do such a thing.
Thanks!
-John
[1] I may generate a patch for the error message, as the current
implementation obscures the real error message. When I try this, git
says:
The following path is ignored by one of your .gitignore files:
framework1/module
Use -f if you really want to add it.After some careful debugging, I found out the real error message was about this sort of nesting being disallowed.