From: Lars Hjemli Date: Sat, 02 Jun 2007 09:53:19 GMT Subject: Re: [PATCH] Let .git/config specify the url for submodules Message-ID: <8c5c35580706020253j4e24785cyce712460d8d1a1b8@mail.gmail.com> In-Reply-To: <7vejkuyaxq.fsf@assigned-by-dhcp.cox.net> On 6/2/07, Junio C Hamano wrote: > "Lars Hjemli" writes: > > > But why would we want to design .gitmodules in a way that makes it > > hard to do the mapping from path to url? > > Perhaps because "path" is not the "identity" of the subproject, but > the (logical) subproject name is? > > Ok. So I'll make 'git-submodule' expect the .gitmodules layout to be like this: [submodule 'xyz'] url=git://example.com/xyz.git path=xyz1 path=xyz2 And submodule.$name.path should be optional: if no submodule.*.path entry exists for a given $path, submodule $name == $path. Ok? -- larsh