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

git rev-parse --show-toplevel doesn't work inside git-dir

From
Orgad Shaneh <orgads@gmail.com>
Date
Jun 5, 2013, 07:34 UTC
Message-ID
<CAGHpTB+AOrQfEGRxQ6qwFMFO0eKBMq19e3fUruNedm81o5rJfw@mail.gmail.com>

Running "git rev-parse --show-toplevel" doesn't print anything when it is run inside .git dir (on all levels)

- Orgad
Next: Jeff King
Message 1 of 2 in “git rev-parse --show-toplevel doesn't work inside git-dir”
  1. Orgad ShanehJun 5, 2013
  2. Jeff KingJun 5, 2013

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.