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

git -p does not detect a bare repository

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Aug 13, 2008, 13:51 UTC
Message-ID
<48A2E6D9.5000609@viscovery.net>
If $PWD is a bare repository, is it expected behavior that
  $ git diff-tree master^ master
works as expected, but
  $ git -p diff-tree master^ master
errors out:
  fatal: ambiguous argument 'master^': unknown revision or path blabla...
-- Hannes
Next: Jeff King
Message 1 of 2 in “git -p does not detect a bare repository”
  1. Johannes SixtAug 13, 2008
  2. Jeff KingAug 13, 2008

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.