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

permissions

From
William Pursell <bill.pursell@gmail.com>
Date
Jun 5, 2010, 09:33 UTC
Message-ID
<4C0A19FE.1020802@wpursell.net>

If .git is not readable, but ../.git is, .git works with the database in ../.git. Is that the desired behavior? It would seem more appropriate that git fail with a "permission denied" error. In particular, if .git is not readable and there is no database between $PWD and $GIT_CEILING_DIRECTORIES, the current error is: fatal: Not a git repository (or any of the parent directories): .git

Wouldn't it be better to have the error message be something like: .git: permission denied

After all, it is a git repository, so "Not a git repository" is not accurate.

-- 
William Pursell
Next: Andreas Schwab
Message 1 of 17 in “permissions”
  1. William PursellJun 5, 2010
  2. Andreas SchwabJun 5, 2010
  3. William PursellJun 5, 2010
  4. Alex RiesenJun 6, 2010
  5. William PursellJun 6, 2010
  6. Alex RiesenJun 6, 2010
  7. Junio C HamanoJun 6, 2010
  8. William PursellJun 8, 2010
  9. Alex RiesenJun 8, 2010
  10. Junio C HamanoJun 8, 2010
  11. William PursellJun 8, 2010
  12. Alex RiesenJun 9, 2010
  13. William PursellJun 9, 2010
  14. Thomas RastJun 9, 2010
  15. Alex RiesenJun 9, 2010
  16. Alex RiesenJun 9, 2010
  17. Steven MichalskeJun 9, 2010

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.