Re: [PATCH] submodule: absorb git dir instead of dying on deinit
- From
Mugdha Pattnaik <mugdhapattnaik@gmail.com>
- Date
- Aug 27, 2021, 13:13 UTC
- Message-ID
- <CAA4dvxj+TqWGW83yD0nvdZOuevwPC=LN0ByHrCTsz3sVX6_5Eg@mail.gmail.com>
- In-Reply-To
- <10db0fb4-56c7-670f-c208-adf5cec4b0fc@gmail.com>
On Fri, Aug 27, 2021 at 1:21 PM Bagas Sanjaya <bagasdotme@gmail.com> 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