Skip to content

Commit fcf59ac

Browse files
newrengitster
authored andcommitted
merge-ort: fix missing early return
One of the conversions in f19b916 (merge-ort: convert more error() cases to path_msg(), 2024-06-19) accidentally lost the early return. Restore it. Signed-off-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f19b916 commit fcf59ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

merge-ort.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3618,6 +3618,7 @@ static int read_oid_strbuf(struct merge_options *opt,
36183618
path_msg(opt, ERROR_OBJECT_NOT_A_BLOB, 0,
36193619
path, NULL, NULL, NULL,
36203620
_("error: object %s is not a blob"), oid_to_hex(oid));
3621+
return -1;
36213622
}
36223623
strbuf_attach(dst, buf, size, size + 1);
36233624
return 0;

0 commit comments

Comments
 (0)