From: Lars Hjemli Date: Mon, 04 Feb 2008 22:44:39 GMT Subject: Re: [PATCH 4/4] git-submodule: prepare for the .git-file Message-ID: <8c5c35580802041444y7bda301ctc8ff8df6cc0587a1@mail.gmail.com> In-Reply-To: <20080204222304.GA15178@glandium.org> On Feb 4, 2008 11:23 PM, Mike Hommey wrote: > On Mon, Feb 04, 2008 at 09:59:21PM +0100, Lars Hjemli wrote: > > - if ! test -d "$path"/.git > > + if ! test -e "$path"/.git > > Is test -e supported by all shells we support ? I have some doubts... > I dunno, but we already use it two other places in git-submodule. I guess we can rewrite it to something like test -d $path || test -f $path || test -L $path || exist=0 if needed. -- lh