python-pygit2/const-parents.patch
Matěj Cepl 8f774c3b9f
Some checks failed
obs/scm/build
Update to 1.16.0:
- Add support for Python 3.13
  - Drop support for Python 3.9
  - New Repository.hashfile(...)
  - New Option.GET_MWINDOW_FILE_LIMIT and
    Option.SET_MWINDOW_FILE_LIMIT
  - Fix overriding certificate_check(...) callback via argument
    to RemoteCallbacks(...)
  - Add py.typed
  - Fix discover_repository(...) annotation
Add const-parents.patch to fix FTBFS (gh#libgit2/pygit2!1324).
2024-11-05 12:32:54 +01:00

28 lines
1.1 KiB
Diff

---
src/repository.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
--- a/src/repository.c
+++ b/src/repository.c
@@ -1065,7 +1065,8 @@ Repository_create_commit(Repository *sel
err = git_commit_create(&oid, self->repo, update_ref,
py_author->signature, py_committer->signature,
- encoding, message, tree, parent_count, parents);
+ encoding, message, tree, parent_count,
+ (const git_commit **)parents);
if (err < 0) {
Error_set(err);
goto out;
@@ -1147,7 +1148,8 @@ Repository_create_commit_string(Reposito
err = git_commit_create_buffer(&buf, self->repo,
py_author->signature, py_committer->signature,
- encoding, message, tree, parent_count, parents);
+ encoding, message, tree, parent_count,
+ (const git_commit **)parents);
if (err < 0) {
Error_set(err);
goto out;