From: Sven Verdoolaege Date: Fri, 18 May 2007 19:33:08 GMT Subject: Re: Initial support for cloning submodules Message-ID: <20070518193308.GJ942MdfPADPa@greensroom.kotnet.org> In-Reply-To: <7vfy6cqk0w.fsf@assigned-by-dhcp.cox.net> On Fri, May 04, 2007 at 03:52:15PM -0700, Junio C Hamano wrote: > (3) "git-fetch --submodules", after finishing what it would do > without "--submodules" option, would inspect the fetched > tree (or the index derived from it), find the tree entries > with mode 160000 (i.e. submodule graft points), and _then_ > uses the pathnames of these tree entries to consult the > config mechanism to see which URL(s) can be used to > retrieve them, probably only for new submodules. I've gone for cloning all available submodules on the remote, even if they are not used in the HEAD. A submodule may have been removed already and IMHO, you wouldn't want to clone a submodule at the time you reset to an intermediate commit. skimo