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
Johan Herland <johan@herland.net>
Date
Sep 24, 2012, 14:11 UTC
Message-ID
<CALKQrgdhFCUs+gqT=PrT3w7suGzvnj7Wo8GfipHHQm6b=TZF+A@mail.gmail.com>
In-Reply-To
<CACsJy8AXonkSXNU_uUXh=d2wojOhAn+S1JW7eUMywxohnAOXjg@mail.gmail.com>
On Mon, Sep 24, 2012 at 3:39 PM, Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:
> On Mon, Sep 24, 2012 at 8:30 PM, Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:
>> Any special in gitdir/worktree setting?
>
> What does "GIT_TRACE_SETUP=1 git log -- /Documentation" show?

FWIW, this issue is resolved as far as I'm concerned. I was simply using the wrong syntax...

Anyway, with current master:

$ GIT_TRACE_SETUP=1 ../git log -1 -- /Documentation setup: git_dir: .git setup: worktree: /home/jherland/git/git setup: cwd: /home/jherland/git/git setup: prefix: t/ fatal: '/Documentation' is outside repository

With v1.7.11:
$ GIT_TRACE_SETUP=1 ../git log -1 -- /Documentation
setup: git_dir: .git
setup: worktree: /home/jherland/git/git
setup: cwd: /home/jherland/git/git
setup: prefix: t/
commit 0ce2e396ee9fb0fa07e8381b338e49859dbf03db
Author: Junio C Hamano <gitster@pobox.com>
Date:   Sun Jun 17 14:07:15 2012 -0700
    Git 1.7.11
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
...Johan
-- 
Johan Herland, <johan@herland.net>
www.herland.net
Previous: Nguyen Thai Ngoc DuyNext: Johan Herland
Message 6 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.