Re: ''git submodule sync'' should not add uninitialized submodules to .git/config
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 23, 2011, 21:47 UTC
- Message-ID
- <7vhb7g2pbf.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <4E039BA7.8060302@cisco.com>
Phil Hord <hordp@cisco.com> writes:
Show 12 quoted lines
> On 06/23/2011 10:35 AM, Junio C Hamano wrote: >>> Now, when I run git submodule update, it starts checking out the third >>> module and my workflow is broken. >> See 33f072f (submodule sync: Update "submodule.<name>.url" for empty >> directories, 2010-10-08), which introduced this behaviour. >> >> cmd_update considers anything that has submodule.<name>.url defined as >> "the user is interested", so I suspect "git submodule sync" should not do >> this. > > What about a compromise? Change git-submodule-sync to skip submodules > which are not already initialized.
You completely lost me. How's that different from reverting 33f072f? I do not see a room for "compromise" here.