refs: clear errno return in refs_resolve_ref_unsafe()
authorHan-Wen Nienhuys <hanwen@google.com>
Thu, 10 Jun 2021 12:57:47 +0000 (12:57 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 11 Jun 2021 03:43:42 +0000 (12:43 +0900)
commit171ac9052f0089d8a98c980204ba93f57b4a85fc
treeb65727563ee02782be6049cca549c060668be858
parent046c275af239741d895943df99f6665df6ec19c7
refs: clear errno return in refs_resolve_ref_unsafe()

This is done in a separate commit, to pinpoint the precise cause should there be
regressions in error reporting.

This is implemented by renaming the existing logic to a static function
refs_resolve_unsafe_implicit_errno(), minimizing the code diff.

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Reviewed-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c