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

Re: Git Bug report

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Oct 6, 2011, 16:26 UTC
Message-ID
<vpq1uuq13yz.fsf@bauges.imag.fr>
In-Reply-To
<7vy5wy145q.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 5 quoted lines
>  If we cannot tell if it is or is not
> a GIT_DIR, we should error out---the reason we cannot tell most likely is
> because we cannot read it, and such a file, if it is not a GIT_DIR, cannot
> be tracked in the real GIT_DIR at a higher level, and if it is a GIT_DIR,
> we cannot use it to record updates or inspect existing history.

Plus, the user may have removed the permission on the .git directory by mistake, and it would be very surprising behavior if git ran without complaining using a higher level GIT_DIR (i.e. a more or less arbitrary repo as far as the user is concerned ...)

> How's that sound as a guideline?
Sounds reasonable, yes.
-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Junio C HamanoNext: Phil Hord
Message 13 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.