Re: [PATCH v2 2/2] grep: stop looking at random places for .gitattributes
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 10, 2012, 19:56 UTC
- Message-ID
- <7vtxu2ayov.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <50758477.3030304@viscovery.net>
Johannes Sixt <j.sixt@viscovery.net> writes:
> At any rate, I don't observe the warnings anymore with this series.
What kind of warnings have you been getting? Earlier we had a bug in the jk/config-warn-on-inaccessible-paths series that made it warn when we tried to open a .gitattribute file and open() returned an error other than ENOENT. The bug was that we saw unnecessary errors when a directory that used to exist no longer exists in the working tree; we would instead get ENOTDIR in such a case that needs to be ignored.
The problem was supposed to be "fixed" by 8e950da (attr: failure to open a ".gitattributes" file is OK with ENOTDIR, 2012-09-13); if you are still seeing the error, that error still may need to be addressed, regardless of Nguyễn's patch.