From: Johannes Schindelin Date: Wed, 25 Jul 2007 20:31:04 GMT Subject: Re: submodule init problem Message-ID: In-Reply-To: <8c5c35580707251325i2633777pdd7604b541506533@mail.gmail.com> Hi, On Wed, 25 Jul 2007, Lars Hjemli wrote: > On 7/25/07, Sven Verdoolaege wrote: > > On Tue, Jul 24, 2007 at 06:49:26PM -0700, Junio C Hamano wrote: > > > Ok, this appears it most likely to be related to the fact that > > > one is a prefix of the other in problematic case. > > > > Yes, this has been noted before and Chris Larson sent in a patch, > > but he didn't follow up on it. > > The following seems to work (in my limitied testing): > > eol='$' > git config --get-regexp '^submodule\..*\.path$' "^$1$eol" Ah, now I get it. You are looking for the _key_ whose value is "$1". But then you really should use "^$1$", and not just "$1", otherwise you will get unintended behaviour when one submodule's name is a substring of another submodule's name. And you do not need the eol hack. Ciao, Dscho