{"thread":{"id":"61611","subject":"[ISSUE] `git submodule update --init --recursive` does ignore `fetchRecurseSubmodules` flag in `.gitmodules` and in `.git/config`","startedAt":"2024-06-10T02:03:00Z","lastAt":"2024-06-10T22:02:21Z","messageCount":2,"participants":["Andry","brian m. carlson"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"496745","messageId":"153002248.20240610041910@inbox.ru","threadId":"61611","inReplyTo":null,"subject":"[ISSUE] `git submodule update --init --recursive` does ignore `fetchRecurseSubmodules` flag in `.gitmodules` and in `.git/config`","fromName":"Andry","fromEmail":"andry@inbox.ru","sentAt":"2024-06-10T01:19:10Z","receivedAt":"2024-06-10T02:03:00Z","isPatch":false,"sender":{"key":"andry@inbox.ru","avatar":null},"body":"Hello Git,\n\nFirst discovered here: https://github.com/gitextensions/gitextensions/issues/11783\nAnother discussion: https://stackoverflow.com/questions/58403616/does-git-submodule-update-recursive-override-fetchrecursesubmodules\nManual: https://git-scm.com/docs/gitmodules#Documentation/gitmodules.txt-submoduleltnamegtfetchRecurseSubmodules\n---\n\nIf use a recursive submodule, for example:\n\nA->B->A->...\n\nAnd call submodules Update on A, then the Update does ignore the flag and keeps fetch recursively with the error at the end:\n\n>  fatal: Failed to recurse into submodule path ...\n\nIs that supposed to work this way or is an bug?\n\n"},{"id":"496810","messageId":"Zmd36kkRM543zlQs@tapette.crustytoothpaste.net","threadId":"61611","inReplyTo":"153002248.20240610041910@inbox.ru","subject":"Re: [ISSUE] `git submodule update --init --recursive` does ignore `fetchRecurseSubmodules` flag in `.gitmodules` and in `.git/config`","fromName":"brian m. carlson","fromEmail":"sandals@crustytoothpaste.net","sentAt":"2024-06-10T22:02:18Z","receivedAt":"2024-06-10T22:02:21Z","isPatch":false,"sender":{"key":"sandals@crustytoothpaste.net","avatar":"https://avatars.githubusercontent.com/u/497054?v=4"},"body":"On 2024-06-10 at 01:19:10, Andry wrote:\n> Hello Git,\n> \n> First discovered here: https://github.com/gitextensions/gitextensions/issues/11783\n> Another discussion: https://stackoverflow.com/questions/58403616/does-git-submodule-update-recursive-override-fetchrecursesubmodules\n> Manual: https://git-scm.com/docs/gitmodules#Documentation/gitmodules.txt-submoduleltnamegtfetchRecurseSubmodules\n> ---\n> \n> If use a recursive submodule, for example:\n> \n> A->B->A->...\n> \n> And call submodules Update on A, then the Update does ignore the flag and keeps fetch recursively with the error at the end:\n> \n> >  fatal: Failed to recurse into submodule path ...\n> \n> Is that supposed to work this way or is an bug?\n\nYes, it's working as designed.  From the documentation,\n`fetchRecurseSubmodules` only applies to `git fetch` and `git pull`, not\n`git submodule`.  Even if it did, you still specified recursive\nbehaviour in a command-line option, and command-line operations override\nthe configuration.\n\nIf you don't want recursion, you'll need to skip the `--recursive` flag.\n-- \nbrian m. carlson (they/them or he/him)\nToronto, Ontario, CA\n"}]}