From: Josef Weidendorfer Date: Thu, 16 Aug 2007 16:39:52 GMT Subject: Re: using .gitmodule as default (was: git submodule init and redundant data in .gitmodules/.git/config) Message-ID: <200708161839.52749.Josef.Weidendorfer@gmx.de> In-Reply-To: <20070816142133.GA26013@piper.oerlikon.madduck.net> On Thursday 16 August 2007, martin f krafft wrote: > also sprach Josef Weidendorfer [2007.08.16.1553 +0200]: > > The information in .gitmodules is only a default value for the > > URL, and not to be actually used. The URL in the config has to > > exist and will be used for updating. So the config value is not > > about overriding anything, but is required information. > > It's not required for git-submodule status. This can show uninitialized submodules, so that's fine. As the URL in .gitmodules is only an initial default, it probably could be optional: if you work on a supermodule with a submodule of your own, it is easily possible that you have no idea about what a reasonable default of a submodule URL should be at the time you do the first supermodule commit. It makes no sense to have to provide a bogus URL there. Josef