14
0
forked from pool/python-pygit2

[info=c0760b117fc40c177bf755bf33d8afcf98ad5dfa5af50e0556b3773a03b56f59]

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygit2?expand=0&rev=98
This commit is contained in:
OBS User unknown
2024-11-05 14:42:22 +00:00
committed by Git OBS Bridge
parent b00627d4f2
commit b9267b7763
7 changed files with 56 additions and 16 deletions

27
const-parents.patch Normal file
View File

@@ -0,0 +1,27 @@
---
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;