On Wed, May 30, 2018 at 7:32 PM, Stefan Beller <sbeller@xxxxxxxxxx> wrote: > * the setup code for commands that do not have the > NEED_WORK_TREE flag in git.c Unless it's very urgent, I can fix it later (and hopefully soon-ish). The problem is definitely not with setting core.worktree but with too eagerly chdir() when you don't need it. We also have another problem (chdir'ing too late) in the same area that led to the introduction of chdir-notify. If I'm successful in killing chdir-notify by chdir at the right time and with the right condition, then it should fix this as well. I'm pretty close to it, I think. -- Duy