From: Junio C Hamano Date: Thu, 23 Jun 2011 21:47:00 GMT Subject: Re: ''git submodule sync'' should not add uninitialized submodules to .git/config Message-ID: <7vhb7g2pbf.fsf@alter.siamese.dyndns.org> In-Reply-To: <4E039BA7.8060302@cisco.com> Phil Hord writes: > 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..url" for empty >> directories, 2010-10-08), which introduced this behaviour. >> >> cmd_update considers anything that has submodule..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.