Re: [RFC] remove/deprecate 'submodule init' and 'sync'
- From
Jens Lehmann <jens.lehmann@web.de>
- Date
- Dec 1, 2012, 15:42 UTC
- Message-ID
- <50BA257F.9070607@web.de>
- In-Reply-To
- <20121201124842.GA32291@odin.tremily.us>
Am 01.12.2012 13:48, schrieb W. Trevor King:
> On Fri, Nov 30, 2012 at 06:52:22PM -0500, Phil Hord wrote: >> If I never 'submodule init' a submodule, it does not get visited by 'git submodule foreach', among others. I think some people use this behavior explicitly. > > This is something I'll fix while working up a trial patch. Currently cmd_update calls module_clone if the <submodule>/.git does not exist. This should probably happen in each command (in a wrapper around module_list?). It's possible that module_list itself would need some work, but I haven't absorbed its implementation yet [1].
Please do not fix it, this is a feature. "update" is the only command where that should happen (and only if "url" is set in .git/config, as I explained in my other mail). So everything should be fine here.