trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: July 2019

Re: [trinity-devel] How to clone with submodules from TDE git mirror?

From: Mike Bird <mgb-trinity@...>
Date: Mon, 22 Jul 2019 10:33:50 -0700
On Mon July 22 2019 09:18:47 Sl�vek Banko wrote:
> I can confirm that it works. If the git repository already exists in the
> destination folder, then call "git submodule init" uses this repository
> and will simple write the information to the ".git/config" file in the
> master repository. As a result, the only difference is that "scripts/.git"
> will not just be a file, but a regular git folder - the same as it would
> be in ".git/modules/scripts" if the initial cloning would be done using
> git submodule init + git submodule update. And this is no problem at all,
> everything works fine. After all, in this way the submodules were placed
> in older versions of the git.

If anyone wants convert the scripts submodule afterwards to match the
others they can "git submodule absorbgitdirs".

--Mike