Re: git submodule init and redundant data in .gitmodules/.git/config
- From
- Sven Verdoolaege <skimo@kotnet.org>
- Date
- Aug 15, 2007, 16:38 UTC
- Message-ID
- <20070815163822.GC1070MdfPADPa@greensroom.kotnet.org>
- In-Reply-To
- <20070815162005.GA18463@piper.oerlikon.madduck.net>
On Wed, Aug 15, 2007 at 06:20:05PM +0200, martin f krafft wrote:
Show 8 quoted lines
> But looking at the two stanzas, it strikes me that the remote url of > the submodule is duplicated and detached, creating redundant data > which may become desynchronised. > > Why is this? > > What is the reason for git-submodule init and moving the data to > .git/config?
The (most appropriate) URL from which to get updates of a submodule may be different for different people and therefore has to be stored in .git/config. It was then decided that the default value for this URL should be stored in .gitmodules. git submodule init simply initializes the URL using this default value. You are free to not call git submodule init and set a (more) appropriate URL manually.
skimo