summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2021-10-03 21:49:18 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-10-03 21:49:18 -0700
commit92382d14cd4146ad05e891a529ed3ce5822d11f7 (patch)
tree2cfb94e9e9651ce865fc9885c5f909196552d9a0 /refs.c
parentMerge branch 'ab/refs-files-cleanup' (diff)
parentrefs: make errno output explicit for read_raw_ref_fn (diff)
downloadtgif-92382d14cd4146ad05e891a529ed3ce5822d11f7.tar.xz
Merge branch 'hn/refs-errno-cleanup'
Futz with the way 'errno' is relied on in the refs API to carry the failure modes up the call chain. * hn/refs-errno-cleanup: refs: make errno output explicit for read_raw_ref_fn refs/files-backend: stop setting errno from lock_ref_oid_basic refs: remove EINVAL errno output from specification of read_raw_ref_fn refs file backend: move raceproof_create_file() here
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/refs.c b/refs.c
index 05944d8e72..da0cc82ca6 100644
--- a/refs.c
+++ b/refs.c
@@ -1682,7 +1682,7 @@ int refs_read_raw_ref(struct ref_store *ref_store,
}
return ref_store->be->read_raw_ref(ref_store, refname, oid, referent,
- type);
+ type, &errno);
}
/* This function needs to return a meaningful errno on failure */