merge-ort: do check `parse_tree()`'s return value
commitf30e6c32d8a27760915922b1ddf76f95f11539bb
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 23 Feb 2024 08:34:21 +0000 (23 08:34 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 Feb 2024 18:19:39 +0000 (23 10:19 -0800)
tree334432972c83bcb2310488d3ead7d08085292015
parentd4bf19308b81653cfb0d7b54489010dc1e0113b0
merge-ort: do check `parse_tree()`'s return value

The previous commit fixed a bug where a missing tree was reported, but
not treated as an error.

This patch addresses the same issue for the remaining two callers of
`parse_tree()`.

This change is not accompanied by a regression test because the code in
question is only reached at the `checkout` stage, i.e. after the merge
has happened (and therefore the tree objects could only be missing if
the disk had gone bad in that short time window, or something similarly
tricky to recreate in the test suite).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
merge-ort.c