merge-ort: fix missing early return
One of the conversions in f19b9165 (merge-ort: convert more error() cases to path_msg(), 2024-06-19) accidentally lost the early return. Restore it. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Elijah Newren committed
Jul 4, 2024 at 20:02 UTC
fcf59ac1363493c4aab6de8547a28a8dd148871e
1 file changed
+1
merge-ort.c
+1
@@ -3618,6 +3618,7 @@ static int read_oid_strbuf(struct merge_options *opt,
3618
path_msg(opt, ERROR_OBJECT_NOT_A_BLOB, 0,
3619
path, NULL, NULL, NULL,
3620
_("error: object %s is not a blob"), oid_to_hex(oid));
3621
+ return -1;
3622
}
3623
strbuf_attach(dst, buf, size, size + 1);
3624
return 0;