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

Auto update submodules after merge and reset

From
MKMax Krasnyansky <maxk@qualcomm.com>
Date
Nov 30, 2011, 00:55 UTC
Message-ID
<4ED57EED.4040705@qualcomm.com>

Does anyone have a pointer to a thread/discussion that explains why git submodules are not auto updated when the superproject is updated (merge, reset, etc) by default?

Assuming a simple and default setup where submodule update policy is set to "checkout". It seems that the default and sane behavior should be to update (checkout) corresponding submodule commit to track the superproject. I can't seem to find convincing explanation why it's not the case :). Having to manually update submodules after pull or reset has been error prone and confusing for the devs I work with.

I'm thinking about adding a config option that would enable automatic submodule update but wanted to see if there is some fundamental reason why it would not be accepted.

Thanx Max

Next: Jens Lehmann
Message 1 of 18 in “Auto update submodules after merge and reset”
  1. Max KrasnyanskyNov 30, 2011
  2. Jens LehmannNov 30, 2011
  3. Max KrasnyanskyDec 6, 2011
  4. Jens LehmannDec 6, 2011
  5. Andreas T.AuerDec 7, 2011
  6. Jens LehmannDec 7, 2011
  7. andreas.t.auer_gtml_37453@ursus.ath.cxDec 8, 2011
  8. Phil HordDec 9, 2011
  9. Andreas T.AuerDec 10, 2011
  10. Phil HordDec 11, 2011
  11. Andreas T.AuerDec 11, 2011
  12. Jens LehmannDec 12, 2011
  13. Phil HordDec 12, 2011
  14. Jens LehmannDec 13, 2011
  15. Andreas T.AuerDec 13, 2011
  16. Jens LehmannDec 13, 2011
  17. Andreas T.AuerDec 13, 2011
  18. Marc BranchaudDec 14, 2011

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.