From: martin f krafft Date: Thu, 16 Aug 2007 14:21:33 GMT Subject: Re: using .gitmodule as default (was: git submodule init and redundant data in .gitmodules/.git/config) Message-ID: <20070816142133.GA26013@piper.oerlikon.madduck.net> In-Reply-To: <200708161553.10991.Josef.Weidendorfer@gmx.de> 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. > The URL should not depend on the current revision you have checked > out at the moment; otherwise, if the default URL in .gitmodules > changed at some point in the history, and you check out some > earlier commit in the superproject, the update of the submodule > would not work: the submodule project still resides on the new > URL, regardless of the old information in .gitmodules at the time > of the old commit. Fair point. Thanks, -- martin; (greetings from the heart of the sun.) \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck "heuristic is computer science jargon for 'doesn't actually work.'" -- charlie reiman spamtraps: madduck.bogus@madduck.net