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

Re: Git Bug report

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Oct 5, 2011, 21:56 UTC
Message-ID
<CACsJy8CZT7=b69mPyLPuggH3QPH5cQfbJXD0PWZopKQ03D6MXQ@mail.gmail.com>
In-Reply-To
<7vlisz8jur.fsf@alter.siamese.dyndns.org>
On Thu, Oct 6, 2011 at 3:49 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 11 quoted lines
>> So if:
>> .git/ is a directory with not enough permissions.
>> ../.git/ is a directory with enough permissions.
>>
>> git would today use ../.git. You suggest that git instead would die
>> because a .git/ exists? (I'm not saying this is wrong or right).
>
> For that matter, if you have .git/ that is a directory but is not a
> repository, and ../.git/ that is, the same situation would arise. I do not
> think we should die because .git/ is not a git repository. I do not know
> if we should even warn about it.

Probably not. On the other hand we should show user how we ignored .git if we find no good repository in the end. So maybe it's a good idea to queue up warnings and only print before git calls die("Not a repository").

-- 
Duy
Previous: Junio C HamanoNext: SZEDER Gábor
Message 7 of 15 in “Git Bug report”
  1. Federico LucifrediOct 4, 2011
  2. Johannes SixtOct 5, 2011
  3. Report errors related to .git access during repository discoveryNguyễn Thái Ngọc Duy, Oct 5, 2011
  4. Federico LucifrediOct 5, 2011
  5. Fredrik GustafssonOct 5, 2011
  6. Junio C HamanoOct 5, 2011
  7. Nguyen Thai Ngoc DuyOct 5, 2011
  8. SZEDER GáborOct 6, 2011
  9. Junio C HamanoOct 6, 2011
  10. SZEDER GáborOct 6, 2011
  11. Phil HordOct 6, 2011
  12. Junio C HamanoOct 6, 2011
  13. Matthieu MoyOct 6, 2011
  14. Phil HordOct 6, 2011
  15. Aaron SchrabOct 6, 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.