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

Re: .gitattributes lookup doesn't respect GIT_WORK_TREE

From
Duy Nguyen <pclouds@gmail.com>
Date
Apr 16, 2018, 15:37 UTC
Message-ID
<CACsJy8DofC0Q9HPE69d=Cd930yG04wTiJdx2j5J8qgSEstr-Pg@mail.gmail.com>
In-Reply-To
<8736zwozze.fsf@linux-m68k.org>
On Mon, Apr 16, 2018 at 12:40 AM, Andreas Schwab <schwab@linux-m68k.org> wrote:
Show 8 quoted lines
> On Apr 16 2018, Junio C Hamano <gitster@pobox.com> wrote:
>
>> I may be mistaken (I do not have the code in front of me right now)
>> but IIRC after the setup.c code runs (which happens quite early in
>> the sequence that starts from git.c::cmd_main()), the Git process
>> moves to the top level of the working tree,
>
> git log/show don't appear to do that.

Yeah we lazily set up worktree in some cases. Elsewhere in the chdir-notify thread, I suggested that we set up worktree unconditionally (but do not die setup fails; only die when a command specifically requests for worktree). That work would help make this work in most cases. But it's not materialized yet.

-- 
Duy
Previous: Andreas Schwab
Message 4 of 4 in “.gitattributes lookup doesn't respect GIT_WORK_TREE”
  1. Andreas SchwabApr 15, 2018
  2. Junio C HamanoApr 15, 2018
  3. Andreas SchwabApr 15, 2018
  4. Duy NguyenApr 16, 2018

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.