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

Re: [BUG?] Path limiting in "git log" when run from another subdir

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Sep 24, 2012, 12:22 UTC
Message-ID
<CACsJy8CECnFbkD6QFWiDMxz6J4mOngrmHPwjuXvsFBUXhNc1_w@mail.gmail.com>
In-Reply-To
<CALKQrged+ptCQYm-=JKRborrAeKmaNFG=rDS8BQK5CNhwqjnkQ@mail.gmail.com>
On Mon, Sep 24, 2012 at 6:59 PM, Johan Herland <johan@herland.net> wrote:
Show 6 quoted lines
> The following works in the git.git repo:
>
> $ cd t
> $ git log -- /Documentation
> [...]
>
What version? Mine (recent master) does not work

~/w/git/t $ ../git log -- /Documentation fatal: '/Documentation' is outside repository

Show 8 quoted lines
> but the following does not:
>
> $ cd t
> $ git log -- /Documentation/RelNotes
> fatal: Could not switch to '/Documentation': No such file or directory
>
>
> Is this the intended behavior?
-- 
Duy
Previous: Johan HerlandNext: Johan Herland
Message 2 of 7 in “[BUG?] Path limiting in "git log" when run from another subdir”
  1. Johan HerlandSep 24, 2012
  2. Nguyen Thai Ngoc DuySep 24, 2012
  3. Johan HerlandSep 24, 2012
  4. Nguyen Thai Ngoc DuySep 24, 2012
  5. Nguyen Thai Ngoc DuySep 24, 2012
  6. Johan HerlandSep 24, 2012
  7. Johan HerlandSep 24, 2012

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.