14
0
forked from pool/python-pygit2

[info=196021276a72dada032fdf877abaa053e1818855548022aef73e40a9617bd4ca]

OBS-URL: https://build.opensuse.org/package/show/devel:Factory:git-workflow:staging:mcepl:python-pygit2:2/python-pygit2?expand=0&rev=1
This commit is contained in:
2024-11-05 11:34:35 +00:00
committed by Git OBS Bridge
parent 3ccebb27e5
commit 2aac036740
7 changed files with 59 additions and 12 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;