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