mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-06 18:52:21 +00:00
Set error when no merge base is found
This commit is contained in:
parent
e830c020f3
commit
de19c4a958
@ -86,6 +86,7 @@ int git_merge_base_many(git_oid *out, git_repository *repo, const git_oid input_
|
||||
goto cleanup;
|
||||
|
||||
if (!result) {
|
||||
giterr_set(GITERR_MERGE, "No merge base found");
|
||||
error = GIT_ENOTFOUND;
|
||||
goto cleanup;
|
||||
}
|
||||
@ -131,7 +132,7 @@ int git_merge_base(git_oid *out, git_repository *repo, const git_oid *one, const
|
||||
|
||||
if (!result) {
|
||||
git_revwalk_free(walk);
|
||||
giterr_clear();
|
||||
giterr_set(GITERR_MERGE, "No merge base found");
|
||||
return GIT_ENOTFOUND;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user