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

Re: BUG: Wrong error message when access to .git directory denied

From
Junio C Hamano <gitster@pobox.com>
Date
May 29, 2015, 17:06 UTC
Message-ID
<xmqqwpzrcnzg.fsf@gitster.dls.corp.google.com>
In-Reply-To
<CAGZ79kZPTpJjLsKSd6E8vQ0HFuSeCH5Hr_LBhSjx9=SQdQhOBQ@mail.gmail.com>
Stefan Beller <sbeller@google.com> writes:
Show 11 quoted lines
>> So "Not a git repository" is the best Git can say.
>
> fatal: Permission denied while accessing .git directory
>
> does not imply we're having a git repository here at all, but rather
> sounds like "We wanted to check for you if this is a git repository,
> but we cannot do that as we lack permissions to do so.
>
> So git doesn't know if it is inside a repo or not, so the actual error message
> "Not a git repository" is wrong. It's just that the current permissions cannot
> tell if we're in a repository or not.
Fair enough.  Patches ;-)?
Previous: Stefan Beller
Message 4 of 4 in “BUG: Wrong error message when access to .git directory denied”
  1. Jonas BerlinMay 29, 2015
  2. Junio C HamanoMay 29, 2015
  3. Stefan BellerMay 29, 2015
  4. Junio C HamanoMay 29, 2015

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.