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

Subtree with submodule inside?

From
RDRobert Dailey <rcdailey.lists@gmail.com>
Date
Aug 6, 2014, 17:20 UTC
Message-ID
<CAHd499CaCeHYGZSQeY8MRVnnjXBTgDy=OUqBYqNd1e5GiKre_A@mail.gmail.com>

Is this even possible? The .gitmodule file has to be at the root of the repository, AFAIK. So if the subtree is inherently not at the root, how does it manage its own submodules?

Basically I have a common library that also keeps a submodule of third party dependencies (binaries). Each super project that depends on this common library (each super project has its own repository) will add it as a subtree. So what happens to the submodule with this setup?

Thanks.
Next: Junio C Hamano
Message 1 of 8 in “Subtree with submodule inside?”
  1. Robert DaileyAug 6, 2014
  2. Junio C HamanoAug 6, 2014
  3. Robert DaileyAug 6, 2014
  4. Jens LehmannAug 6, 2014
  5. Jonathan NiederAug 6, 2014
  6. Junio C HamanoAug 6, 2014
  7. Jonathan NiederAug 6, 2014
  8. Heiko VoigtAug 7, 2014

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.