Re: submodule init problem
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jul 25, 2007, 20:31 UTC
- Message-ID
- <Pine.LNX.4.64.0707252129150.14781@racer.site>
- In-Reply-To
- <8c5c35580707251325i2633777pdd7604b541506533@mail.gmail.com>
Hi,
On Wed, 25 Jul 2007, Lars Hjemli wrote:
Show 12 quoted lines
> On 7/25/07, Sven Verdoolaege <skimo@kotnet.org> 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