Revert "commit: fix const declaration"

This reverts commit cf19ddc522, which
was breaking for several projects.
This commit is contained in:
Edward Thomson
2024-06-13 15:20:40 +02:00
parent 6c5520f334
commit 49d3fadfca
17 changed files with 36 additions and 33 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, parents);
opts->annotated_count + 1, (const git_commit **)parents);
check_lg2(err, "failed to create commit", NULL);
/* We're done merging, cleanup the repository state */