Re: [ANNOUNCE] GIT 1.5.2-rc3
- From
- Lars Hjemli <hjemli@gmail.com>
- Date
- May 11, 2007, 11:08 UTC
- Message-ID
- <8c5c35580705110408g7068e917lb672e1ac56f2c84c@mail.gmail.com>
- In-Reply-To
- <7v1whnesyn.fsf@assigned-by-dhcp.cox.net>
On 5/11/07, Junio C Hamano <junkio@cox.net> wrote:
Show 14 quoted lines
> Alexander Litvinov <litvinov2004@gmail.com> writes: > > > I have tried your test and found that cloning such repo does not clone > > subprojects. Only empty dir 'sub' is being cloned. > > Yes, that is pretty much intentional. Having a link for higher > layer tools can use (i.e. tree objects can contain 160000 mode > "gitlinks" to subproject commit objects) while not considering > such linkage part of the reachability is the whole point of > plumbing level subproject support. It allows people not to > download repositories of uninteresting subprojects. Higher > layer tools such as clone/checkout/diff could be instructed > (currently they cannot be, though) to recurse into subproject > directories if the user wants to.
fwiw: I just released cgit 0.3, which includes a script (submodules.sh) used to initialize, update and check status of submodules. It uses the file .gitmodules to map between submodule path and git repository url (cgit now uses git as a submodule).
You can clone the repo here:
git://hjemli.net/pub/git/cgit
just look at the files here:
http://hjemli.net/git/cgit/
-- larsh