summaryrefslogtreecommitdiffstats
path: root/t/t4013/diff.format-patch_--inline_--stdout_initial..master^
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2026-01-12 10:02:55 +0100
committerJunio C Hamano <gitster@pobox.com>2026-01-12 06:55:40 -0800
commit9ebccf744a967f399579a3f3ffbeb40120f5a1e1 (patch)
tree0cbfae155c6c8dc8a11b449fe3c6821b8d50bee6 /t/t4013/diff.format-patch_--inline_--stdout_initial..master^
parent0ff9cf40b2ce3df2f6eda0875eb54fe3c3487f5b (diff)
downloadgit-9ebccf744a967f399579a3f3ffbeb40120f5a1e1.tar.gz
git-9ebccf744a967f399579a3f3ffbeb40120f5a1e1.zip
refs/files: improve error handling when verifying symrefs
The error handling when verifying symbolic refs is a bit on the wild side: - `fsck_report_ref()` can be told to ignore specific errors. If an error has been ignored and a previous check raised an unignored error, then assigning `ret = fsck_report_ref()` will cause us to swallow the previous error. - When the target reference is not valid we bail out early without checking for other errors. Fix both of these issues by consistently or'ing the return value and not bailing out early. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.format-patch_--inline_--stdout_initial..master^')
0 files changed, 0 insertions, 0 deletions