From: W. Trevor King Date: Thu, 27 Mar 2014 21:01:07 GMT Subject: submodule..branch vs. submodule..branch (was: Possible regression in master? (submodules without a "master" branch). Message-ID: <20140327210106.GV4008@odin.tremily.us> In-Reply-To: I'm breaking this off into a sub-thread, so it doesn't distract from the main issue. On Thu, Mar 27, 2014 at 12:39:03PM -0700, Junio C Hamano wrote: > There is this bit for "update" in git-submodule.txt: > > For updates that clone missing submodules, checkout-mode updates > will create submodules with detached HEADs; all other modes will > create submodules with a local branch named after > submodule..branch. > > [side note] Isn't that a typo of submodule..branch? Good catch. The transition from submodule..* to submodule..* happened in 73b0898d (Teach "git submodule add" the --name option, 2012-09-30), which landed in v1.8.1-rc0 on 2012-12-03. The first submodule..branch reference landed a short time later in b9289227 (submodule add: If --branch is given, record it in .gitmodules, 2012-12-19), and I was probably just not aware of 73b0898d. The second submodule..branch reference landed in 23d25e48 (submodule: explicit local branch creation in module_clone, 2014-01-26), and is just a copy paste error. Both should be updated to submodule..branch. Cheers, Trevor -- This email may be signed or encrypted with GnuPG (http://www.gnupg.org). For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy