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

gitmodules below root directory

From
RDRobert Dailey <rcdailey.lists@gmail.com>
Date
Sep 6, 2017, 13:53 UTC
Message-ID
<CAHd499AuoZ-89mpnVkMhxaDT44SRNT2xWE7sykcaP8n5xTRd-g@mail.gmail.com>

The gitmodules documentation[1] states that the .gitmodules file is at the root. However, it would be nice if this could be supported in any directory similar to how .gitignore works. Right now git-subrepo does not support submodules inside of a subrepo[2] (I suspect subtrees would have the same problem, but I did not verify). I think this is a limitation of git, rather than subrepo itself. Perhaps there are reasons why .gitmodules must be at the root, but I at least wanted to point it out and see if this could be supported.

[1]: https://git-scm.com/docs/gitmodules [2]: https://github.com/ingydotnet/git-subrepo/issues/262

Next: Stefan Beller
Message 1 of 4 in “gitmodules below root directory”
  1. Robert DaileySep 6, 2017
  2. Stefan BellerSep 6, 2017
  3. Junio C HamanoSep 6, 2017
  4. Jacob KellerSep 7, 2017

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.