On Fri, Aug 27, 2021 at 1:21 PM Bagas Sanjaya <bagasdotme@xxxxxxxxx> 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/<name>/ of the superproject. This is what this patch sets to achieve. Earlier, running deinit on such a submodule would cause it to fail. -- Mugdha