From: Josh Steadmon Date: Tue, 16 Dec 2025 23:22:59 GMT Subject: Re: [PATCH v6 04/10] submodule: introduce extensions.submodulePathConfig Message-ID: In-Reply-To: <20251213080817.347922-5-adrian.ratiu@collabora.com> On 2025.12.13 10:08, Adrian Ratiu wrote: > The idea of this extension is to abstract away the submodule gitdir > path implementation: everyone is expected to use the config and not > worry about how the path is computed internally, either in git or > other implementations. > > With this extension enabled, the submodule..gitdir repo config > becomes the single source of truth for all submodule gitdir paths. > > The submodule..gitdir config is added automatically for all new > submodules when this extension is enabled. > > Git will throw an error if the extension is enabled and a config is > missing, advising users how to migrate. Migration is manual for now. This part doesn't seem accurate in my testing. When cloning a project with `--recurse-submodules` and with the extension enabled globally, the resulting .git/config does not include gitdir configs for any of the cloned submodules, yet no error occurs.