From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Schindelin Subject: Re: submodule init problem Date: Wed, 25 Jul 2007 21:31:04 +0100 (BST) Message-ID: References: <8c5c35580706020013g2a4039fcsdf8974da8cd4c2c2@mail.gmail.com> <7vsl7jvthk.fsf@assigned-by-dhcp.cox.net> <20070602074410.GA955MdfPADPa@greensroom.kotnet.org> <7vir89fe1l.fsf@assigned-by-dhcp.cox.net> <20070725081508.GN1591MdfPADPa@greensroom.kotnet.org> <8c5c35580707251325i2633777pdd7604b541506533@mail.gmail.com> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: skimo@liacs.nl, Junio C Hamano , git@vger.kernel.org, Ricky Nite , Chris Larson To: Lars Hjemli X-From: git-owner@vger.kernel.org Wed Jul 25 22:31:26 2007 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1IDnVz-0001JZ-7t for gcvg-git@gmane.org; Wed, 25 Jul 2007 22:31:23 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754254AbXGYUbK (ORCPT ); Wed, 25 Jul 2007 16:31:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754992AbXGYUbK (ORCPT ); Wed, 25 Jul 2007 16:31:10 -0400 Received: from mail.gmx.net ([213.165.64.20]:46928 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754254AbXGYUbI (ORCPT ); Wed, 25 Jul 2007 16:31:08 -0400 Received: (qmail invoked by alias); 25 Jul 2007 20:31:06 -0000 Received: from unknown (EHLO [138.251.11.74]) [138.251.11.74] by mail.gmx.net (mp057) with SMTP; 25 Jul 2007 22:31:06 +0200 X-Authenticated: #1490710 X-Provags-ID: V01U2FsdGVkX1/zsgIb8RXzLqky5lUxjCgtRldr0WZFx/N1JBqUrh ySsUis73eSQyu9 X-X-Sender: gene099@racer.site In-Reply-To: <8c5c35580707251325i2633777pdd7604b541506533@mail.gmail.com> X-Y-GMX-Trusted: 0 Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: 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