git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
LHLars Hjemli <hjemli@gmail.com>
Date
Feb 4, 2008, 22:44 UTC
Message-ID
<8c5c35580802041444y7bda301ctc8ff8df6cc0587a1@mail.gmail.com>
In-Reply-To
<20080204222304.GA15178@glandium.org>
On Feb 4, 2008 11:23 PM, Mike Hommey <mh@glandium.org> wrote:
Show 6 quoted lines
> 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
Previous: Mike HommeyNext: Junio C Hamano
Message 7 of 13 in “Introduce the .git-file”
  1. 0/4 Introduce the .git-fileLars Hjemli, Feb 4, 2008
  2. 1/4 Add platform-independent .git "symlink"Lars Hjemli, Feb 4, 2008
  3. 2/4 Document the .git-fileLars Hjemli, Feb 4, 2008
  4. 3/4 Add tests for .git fileLars Hjemli, Feb 4, 2008
  5. 4/4 git-submodule: prepare for the .git-fileLars Hjemli, Feb 4, 2008
  6. Mike HommeyFeb 4, 2008
  7. Lars HjemliFeb 4, 2008
  8. Junio C HamanoFeb 6, 2008
  9. 3/4 Add tests for .git fileLars Hjemli, Feb 6, 2008
  10. Junio C HamanoFeb 6, 2008
  11. Lars HjemliFeb 6, 2008
  12. Junio C HamanoFeb 6, 2008
  13. Lars HjemliFeb 6, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.