diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2017-05-22 17:17:51 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-05-23 08:29:56 +0300 |
commit | 89c571da56a1e84fe12308f727fac0e82c1d5be6 (patch) | |
tree | 061b4d17ad48789c478469cb75d24e7440cc9b6b /refs.c | |
parent | 099a912a279415dd27716ee5de07ff347bfc49da (diff) |
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>
Diffstat (limited to 'refs.c')
0 files changed, 0 insertions, 0 deletions