{"thread":{"id":"63112","subject":"Fwd: Suggesting config option for clone to always recurse submodules","startedAt":"2025-03-13T17:49:55Z","lastAt":"2025-03-13T17:49:55Z","messageCount":1,"participants":["Tor Nichols"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"514218","messageId":"CAJerik+ZJdV+YW-XePfHRzwCn3CBekK42fA9M19AkduK_YW44g@mail.gmail.com","threadId":"63112","inReplyTo":"CAJerikKVusF=7w6Wmmbn8a2sQ9OQOzZG3j8sJFx2_B=+Y6QGqg@mail.gmail.com","subject":"Fwd: Suggesting config option for clone to always recurse submodules","fromName":"Tor Nichols","fromEmail":"bustedchain@gmail.com","sentAt":"2025-03-13T17:49:41Z","receivedAt":"2025-03-13T17:49:55Z","isPatch":false,"sender":{"key":"bustedchain@gmail.com","avatar":null},"body":"Use case:\nTop level project with submodule.\nThe submodule also has a submodule in it.\n\nI would like to be able to set an option with git config that applies\nthe --recursive or --recurse-submodules flag to all clone commands.\n\nLooking at the .gitconfig file, I would have expected this to work:\n\n[clone]\n     recursive = true\n\nOR:\n\n[clone]\n     recurse-submodules = true\n\nWhen I checkout a branch, it is sometimes nice to have it go ahead and\ncheckout the submodules too.  Other times it is nice to checkout a\nspecific branch without changing the submodules.  So I don't want to\nchange the existing behavior with a flag that affects multiple\noperations.   Besides, the current way of applying a config for\nsubmodules recursiveness excludes clone anyway...    If clone is going\nto be excluded, it would be nice for clone to have its own flag.\nClone is the place where I would 100% of the time want to go ahead and\nclone submodules without executing another command.\n\nSince I use an IDE and the CLI, having a config that makes it work the\nsame in both places would be really nice.   The IDE is \"smart\" and\nwill clone the submodules automatically...  it would be nice to make\nthe CLI configurable to the point where I get the same behavior either\nway.\n\nThank you for considering my request.\n\n-Tor\n"}]}