Skip to content

Commit

Permalink
fixup! get_octopus_merge_bases(): pass on errors from `merge_bases_ma…
Browse files Browse the repository at this point in the history
…ny()`
  • Loading branch information
dscho committed Feb 21, 2024
1 parent fa64625 commit eda38eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion builtin/merge-base.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,11 @@ static int handle_octopus(int count, const char **args, int show_all)
for (i = count - 1; i >= 0; i--)
commit_list_insert(get_commit_reference(args[i]), &revs);

if (get_octopus_merge_bases(revs, &result) < 0)
if (get_octopus_merge_bases(revs, &result) < 0) {
free_commit_list(revs);
free_commit_list(result);
return 128;
}
free_commit_list(revs);
reduce_heads_replace(&result);

Expand Down

0 comments on commit eda38eb

Please sign in to comment.