summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-01-14 23:25:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-01-14 23:25:15 (GMT)
commit31e391236958c2e75787b7579146b3569fb6ec17 (patch)
tree16e512db09a8a8cfad7ecea1d9c2e482fff88144 /refs.c
parent1ffcbaa1a5f10c9f706314d77f88de20a4a498c2 (diff)
parentcac15b3fb422efb2cd1572cc654793d5df5fa434 (diff)
downloadgit-31e391236958c2e75787b7579146b3569fb6ec17.zip
git-31e391236958c2e75787b7579146b3569fb6ec17.tar.gz
git-31e391236958c2e75787b7579146b3569fb6ec17.tar.bz2
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 bd2546a..addb262 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)