From: Martin Waitz Date: Wed, 11 Apr 2007 08:36:42 GMT Subject: Re: [PATCH 6/6] Teach core object handling functions about gitlinks Message-ID: <20070411083642.GH21701@admingilde.org> In-Reply-To: <81b0412b0704110129q56ee0628jafe8fca808ef9ef8@mail.gmail.com> hoi :) On Wed, Apr 11, 2007 at 10:29:24AM +0200, Alex Riesen wrote: > On 4/11/07, Martin Waitz wrote: > >So my advice is: > >Always read and write one dedicated branch (hardcoded "master" or > >configurable) when the supermodule wants to access a submodule. > > In this case it does not correspond to the working tree anymore. > HEAD is the "closest" to working tree of submodule. yes. This has been discussed in length already. Please have a look at the archives. Your working tree now contains a complete git repository which has features which are not available for normal files. Notable, you have the possibility to create branches in the submodule. If you insist in using HEAD you throw away those submodule capabilities. -- Martin Waitz