refs: use refs_resolve_ref_unsafe_with_errno() where needed
authorHan-Wen Nienhuys <hanwen@google.com>
Thu, 10 Jun 2021 12:57:45 +0000 (12:57 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 11 Jun 2021 03:43:42 +0000 (12:43 +0900)
commitae3f7883f930d37f0a62b1a0cadf764f623ffa56
tree7f502f87e28788abe34093fb9612ff7cf71184d4
parent6445eeffc95b36946705f8698935b44954dc47df
refs: use refs_resolve_ref_unsafe_with_errno() where needed

lock_ref_oid_basic() in files-backend.c is the only caller of refs_resolve_ref()
that needs error information to make logic decisions.

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/files-backend.c