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

Re: [PATCH] Re: Minor grammar fix in the 'Not a git repository' message

From
Lars Noschinski <lars@public.noschinski.de>
Date
Feb 17, 2009, 08:50 UTC
Message-ID
<20090217085028.GB7338@lars.home.noschinski.de>
In-Reply-To
<7vk57pevig.fsf@gitster.siamese.dyndns.org>
* Junio C Hamano <gitster@pobox.com> [09-02-17 01:51]:
Show 12 quoted lines
>Nicolas Sebrecht <nicolas.s-dev@laposte.net> writes:
>
>> The message
>> 	"Not inside a git repository" 
>> of Wincent looks like the clearest and the fairest one.
>
>I tend to agree.  I was only trying to see if we can salvage a more
>precise diagnosis f66bc5f (Always show which directory is not a git
>repository, 2008-12-22) tried to give users, but to do it throughly the
>sentence will become even more awkward.
>
>    "Not inside a bare git repository nor a work tree that has .git/ somewhere in it."

I think f66bc5f used the wrong path for the error message. If the comment above this part of the code is accurate, cwd is which should be belonging to a git repository, so I would suggest

     die("Not inside a git repository: %s", cwd)
  - Lars.
Previous: Jakub Narebski
Message 8 of 8 in “Minor grammar fix in the 'Not a git repository' message”
  1. Minor grammar fix in the 'Not a git repository' messageJohannes Schindelin, Feb 16, 2009
  2. Wincent ColaiutaFeb 16, 2009
  3. Junio C HamanoFeb 16, 2009
  4. Re: Minor grammar fix in the 'Not a git repository' messageNicolas Sebrecht, Feb 17, 2009
  5. Junio C HamanoFeb 17, 2009
  6. Boyd Stephen Smith Jr.Feb 17, 2009
  7. Jakub NarebskiFeb 17, 2009
  8. Lars NoschinskiFeb 17, 2009

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.