Re: [PATCH 2/3] t0001: work around the bug that reads config file before repo setup
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Sep 9, 2016, 10:32 UTC
- Message-ID
- <CACsJy8DmbdGODY+qT38OSkaegSpdO7yAt6e67sHB=_BT8Y7=_Q@mail.gmail.com>
- In-Reply-To
- <20160908200202.gmvpqrwwjavxmojb@sigill.intra.peff.net>
On Fri, Sep 9, 2016 at 3:02 AM, Jeff King <peff@peff.net> wrote:
Show 13 quoted lines
> On Thu, Sep 08, 2016 at 08:47:18PM +0700, Nguyễn Thái Ngọc Duy wrote: > >> git-init somehow reads '.git/config' at current directory and sets >> log_all_ref_updates based on this file. Because log_all_ref_updates is >> not unspecified (-1) any more. It will not be written to the new repo's >> config file (see create_default_files() function). >> >> This will affect our tests in the next patch as we will compare the >> config file and expect that core.logallrefupdates is already set to true >> by "git init main-worktree". > > This is a bug for more than worktrees, and is something I'm working on > fixing
Great! test_expect_failure it is. But I'll make a separate patch, independent from this series though.
-- Duy