From: Elijah Newren Date: Thu, 4 Jul 2024 20:02:21 +0000 (+0000) Subject: merge-ort: fix missing early return X-Git-Tag: v2.46.0-rc1~20^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fcf59ac1363493c4aab6de8547a28a8dd148871e;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/merge-ort.c b/merge-ort.c index 8dfe80f100..d9ba6e3e52 100644 --- a/merge-ort.c +++ b/merge-ort.c @@ -3618,6 +3618,7 @@ static int read_oid_strbuf(struct merge_options *opt, path_msg(opt, ERROR_OBJECT_NOT_A_BLOB, 0, path, NULL, NULL, NULL, _("error: object %s is not a blob"), oid_to_hex(oid)); + return -1; } strbuf_attach(dst, buf, size, size + 1); return 0;