summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2022-01-14 15:25:14 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2022-01-14 15:25:15 -0800
commit31e391236958c2e75787b7579146b3569fb6ec17 (patch)
tree16e512db09a8a8cfad7ecea1d9c2e482fff88144 /refs.c
parentLast minute fixes before -rc1 (diff)
parentrefs API: use "failure_errno", not "errno" (diff)
downloadtgif-31e391236958c2e75787b7579146b3569fb6ec17.tar.xz
Merge branch 'ab/refs-errno-cleanup'
A brown-paper-bag fix on top of a topic that was merged during this cycle. * ab/refs-errno-cleanup: refs API: use "failure_errno", not "errno"
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/refs.c b/refs.c
index bd2546ae23..addb26293b 100644
--- a/refs.c
+++ b/refs.c
@@ -1722,8 +1722,6 @@ const char *refs_resolve_ref_unsafe(struct ref_store *refs,
if (refs_read_raw_ref(refs, refname, oid, &sb_refname,
&read_flags, failure_errno)) {
*flags |= read_flags;
- if (errno)
- *failure_errno = errno;
/* In reading mode, refs must eventually resolve */
if (resolve_flags & RESOLVE_REF_READING)