From: Mugdha Pattnaik Date: Fri, 27 Aug 2021 13:13:19 GMT Subject: Re: [PATCH] submodule: absorb git dir instead of dying on deinit Message-ID: In-Reply-To: <10db0fb4-56c7-670f-c208-adf5cec4b0fc@gmail.com> On Fri, Aug 27, 2021 at 1:21 PM Bagas Sanjaya wrote: > Maybe the case of "repo inside the repo", with submodule as repo? I am not certain what exactly you meant, but this patch deals with "Old-form" submodules. This link (https://git-scm.com/docs/gitsubmodules#_forms) states that old-style submodules, when deinitialized or deleted, have its Git directory automatically moved to $GIT_DIR/modules// of the superproject. This is what this patch sets to achieve. Earlier, running deinit on such a submodule would cause it to fail. -- Mugdha