Re: [PATCH] status: add a failing test showing a core.untrackedCache bug
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 28, 2017, 18:34 UTC
- Message-ID
- <xmqq1sjen1lh.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20171228061027.GA22308@duynguyen.vn.dektech.internal>
Duy Nguyen <pclouds@gmail.com> writes:
Show 14 quoted lines
>> Duy, what am I missing here? > > The problem is there, it's just easier to see or verify with > symlinks. Below is my test patch on top of your original one. Two > points: > > - if you look at the test-dump-untracked-cache output, you can see the > saved cache is wrong. The line > > /one/ 0000000000000000000000000000000000000000 recurse valid > > should not be there because that implies that cached travesal of > root includes the directory "one" which does not exist on disk > anymore. With the fix, this line is gone.
Nice.
Show 5 quoted lines
> - We silently ignore opendir() error, the changes in dir.c shows this > ... > Report opendir() errors is a good and should be done regardless (i'm > just not sure if it should be a fatal error or a warning like this, I > guess die() is a bit too much).
Thanks; I agree that it definitely would be a good change to issue a warning there.