mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
commit: fix const declaration
commit functions should take an array of const pointers, not a const array.
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user