From: Ramkumar Ramachandra Date: Wed, 17 Apr 2013 10:53:20 GMT Subject: Re: [RFC/PATCH] clone: introduce clone.submoduleGitDir to relocate $GITDIR Message-ID: In-Reply-To: Duy Nguyen wrote: > 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..) Currently, submodules relocate the GITDIR of submodules to .git/modules. So, my proposed patch doesn't make the situation any worse. In fact, it improves the situation because you're guaranteed that all your GITDIRs will be in ~/bare (or whatever your core.submoduleGitDir is), as opposed to a complex path in .git/modules of your containing superproject.