From: Lars Hjemli Date: Sat, 02 Jun 2007 10:38:50 GMT Subject: Re: [PATCH] Let .git/config specify the url for submodules Message-ID: <8c5c35580706020338v89d341cg811982891a439685@mail.gmail.com> In-Reply-To: <7vbqfyvf5o.fsf@assigned-by-dhcp.cox.net> On 6/2/07, Junio C Hamano wrote: > "Lars Hjemli" writes: > > > 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? > > I do not think having more than one path for a given submodule > makes much sense Me neither, but it was mentioned as a possibility to have the same repo checked out in multiple paths simultaneously. It does raise an issue of how to push changes back into .git/submodules/$name.git tough (git-submodule push). My initial plan for this was to push into the branch registered for each path: [submodule 'xyz'] url=git://example.com/xyz.git [path 'xyz1'] submodule=xyz branch=stable [path 'xyz2'] submodule=xyz branch=bleedingedge but there is probably other/better solutions. >but other than that yes. Thanks -- larsh