commit-reach(repo_get_merge_bases): pass on "missing commits" errors
The `merge_bases_many()` function was just taught to indicate parsing errors, and now the `repo_get_merge_bases()` function (which is also surfaced via the `repo_get_merge_bases()` macro) is aware of that, too. Naturally, there are a lot of callers that need to be adjusted now, too. Next step: adjust the callers of `get_octopus_merge_bases()`. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
8226e157a9
commit
76e2a09999
@ -607,7 +607,8 @@ int notes_merge(struct notes_merge_options *o,
|
||||
assert(local && remote);
|
||||
|
||||
/* Find merge bases */
|
||||
bases = repo_get_merge_bases(the_repository, local, remote);
|
||||
if (repo_get_merge_bases(the_repository, local, remote, &bases) < 0)
|
||||
exit(128);
|
||||
if (!bases) {
|
||||
base_oid = null_oid();
|
||||
base_tree_oid = the_hash_algo->empty_tree;
|
||||
|
Reference in New Issue
Block a user