diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-01-26 15:37:00 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-01-26 15:58:38 -0800 |
commit | 09444e74e3acf4e726db60a5595eb7d3ebca8450 (patch) | |
tree | ed2777cb0c9c8a555029a8e126533507795f544c /t/t4034/pascal | |
parent | Git 2.35 (diff) | |
download | tgif-09444e74e3acf4e726db60a5595eb7d3ebca8450.tar.xz |
sequencer: don't use die_errno() on refs_resolve_ref_unsafe() failure
Change code that was faithfully migrated to the new "resolve_errno"
API in ed90f04155d (refs API: make resolve_ref_unsafe() not set errno,
2021-10-16) to stop caring about the errno at all.
When we fail to resolve "HEAD" after the sequencer runs it doesn't
really help to say what the "errno" value is, since the fake backend
errno may or may not reflect anything real about the state of the
".git/HEAD". With the upcoming reftable backend this fakery will
become even more pronounced.
So let's just die() instead of die_errno() here. This will also help
simplify the refs_resolve_ref_unsafe() API. This was the only user of
it that wasn't ignoring the "failure_errno" output parameter.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4034/pascal')
0 files changed, 0 insertions, 0 deletions