Re: [PATCH 4/4] git-submodule: prepare for the .git-file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Feb 4, 2008 11:23 PM, Mike Hommey <mh@xxxxxxxxxxxx> 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
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux