commit: fix const declaration

commit functions should take an array of const pointers, not a const
array.
This commit is contained in:
Edward Thomson
2024-01-14 15:37:20 +00:00
parent 048421a404
commit cf19ddc522
17 changed files with 32 additions and 34 deletions

View File

@@ -263,7 +263,7 @@ static int create_merge_commit(git_repository *repo, git_index *index, struct me
sign, sign,
NULL, msg,
tree,
opts->annotated_count + 1, (const git_commit **)parents);
opts->annotated_count + 1, parents);
check_lg2(err, "failed to create commit", NULL);
/* We're done merging, cleanup the repository state */