mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-15 18:41:37 +01:00
33 lines
1.3 KiB
Diff
33 lines
1.3 KiB
Diff
From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
|
|
Date: Sun, 15 Sep 2024 10:04:24 +0200
|
|
Subject: Revert const correctness change from libgit2 1.8.1
|
|
|
|
---
|
|
src/repository.c | 6 ++++--
|
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/repository.c b/src/repository.c
|
|
index d1d42ec..1335606 100644
|
|
--- a/src/repository.c
|
|
+++ b/src/repository.c
|
|
@@ -1065,7 +1065,8 @@ Repository_create_commit(Repository *self, PyObject *args)
|
|
|
|
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(Repository *self, PyObject *args)
|
|
|
|
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;
|