Re: [RFC/PATCH] clone: introduce clone.submoduleGitDir to relocate $GITDIR
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Apr 17, 2013, 10:22 UTC
- Message-ID
- <CACsJy8D-5x5HXgpr2hHUHee6jcfj3++b961sJB_aKTZC1ZS+tw@mail.gmail.com>
- In-Reply-To
- <1365881007-25731-1-git-send-email-artagnon@gmail.com>
On Sun, Apr 14, 2013 at 5:23 AM, Ramkumar Ramachandra <artagnon@gmail.com> wrote:
Show 5 quoted lines
> This configuration variable comes into effect when 'git clone' is > invoked inside an existing git repository's worktree. When set, > instead of cloning the given repository as-is, it relocates the gitdir > of the repository to the path specified by this variable. This > setting is especially useful when working with submodules.
What if I clone a repo then realize it was a mistake and remove it? With current clone, a "rm -rf" would do. With this, I'll need to figure out which subdir in the top .git contains the repo I want to remove. I'm not sure how "git submodule" handles this case though (i.e. total submodule ignorant speaking..) -- Duy