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

Re: [PATCH 1/2] clone: allow to clone from .git file

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Aug 22, 2011, 03:08 UTC
Message-ID
<CACsJy8BaCwT+fd-KORsqXqQEtWZUpTDwgoSGU9+pMfNdero5=Q@mail.gmail.com>
In-Reply-To
<7v7h66y4s5.fsf@alter.siamese.dyndns.org>
2011/8/22 Junio C Hamano <gitster@pobox.com>:
Show 10 quoted lines
> Nguyễn Thái Ngọc Duy  <pclouds@gmail.com> writes:
>
>> +             else if (S_ISREG(st.st_mode) && st.st_size > 8) {
>> +                     /* Despite the name read_gitfile_gently can be
>> +                        cruel on non .git file, check for signature
>> +                        ourselves */
>
> Didn't somebody add "is this '.git' thing a valid git metadirectory?" API
> quite recently for exactly this?
>

You mean resolve_gitdir() in abc0682 (rev-parse: add option --resolve-git-dir <path> - 2011-08-15)? That function would barf on a bundle file. I'm not aware of any other functions.

-- 
Duy
Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 9 in “clone: allow to clone from .git file”
  1. 1/2 clone: allow to clone from .git fileNguyễn Thái Ngọc Duy, Aug 21, 2011
  2. 2/2 Do not accept NUL in the path in .git fileNguyễn Thái Ngọc Duy, Aug 21, 2011
  3. Junio C HamanoAug 21, 2011
  4. Nguyen Thai Ngoc DuyAug 22, 2011
  5. Junio C HamanoAug 22, 2011
  6. Re* [PATCH 1/2] clone: allow to clone from .git fileJunio C Hamano, Aug 22, 2011
  7. Nguyen Thai Ngoc DuyAug 23, 2011
  8. Junio C HamanoAug 23, 2011
  9. Nguyen Thai Ngoc DuyAug 23, 2011

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.