]> git.ipfire.org Git - thirdparty/git.git/commit
read_packed_refs(): report unexpected fopen() failures
authorMichael Haggerty <mhagger@alum.mit.edu>
Mon, 22 May 2017 14:17:51 +0000 (16:17 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 May 2017 05:29:56 +0000 (14:29 +0900)
commit89c571da56a1e84fe12308f727fac0e82c1d5be6
tree061b4d17ad48789c478469cb75d24e7440cc9b6b
parent099a912a279415dd27716ee5de07ff347bfc49da
read_packed_refs(): report unexpected fopen() failures

The old code ignored any errors encountered when trying to fopen the
"packed-refs" file, treating all such failures as if the file didn't
exist. But it could be that there is some other error opening the
file (e.g., permissions problems), and we don't want to silently
ignore such problems. So report any failures that are not due to
ENOENT.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs/files-backend.c