ki: fix build with gitpython 3.1.57+ (#561616)

This commit is contained in:
Peder Bergebakken Sundt
2026-09-13 22:23:01 +00:00
committed by GitHub
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
diff --git a/ki/__init__.py b/ki/__init__.py
index a9e4877..09ea9c1 100644
--- a/ki/__init__.py
+++ b/ki/__init__.py
@@ -1460,7 +1460,7 @@ def _pull2(kirepo: KiRepo, col: Collection) -> Collection:
# Create git remote pointing to `remote_repo`, which represents the current
# state of the Anki SQLite3 database, and pull it into `lca_repo`.
- anki_remote = lca_repo.create_remote(REMOTE_NAME, F.gitd(remote_repo))
+ anki_remote = lca_repo.create_remote(REMOTE_NAME, str(F.gitd(remote_repo)))
anki_remote.fetch()
# Handle deleted files, preferring `theirs`.

View File

@@ -22,6 +22,7 @@ python3Packages.buildPythonApplication {
./fix-beartype-error.patch
./replace-deprecated-distutils-with-setuptools.patch
./update-to-newer-anki-versions.patch
./fix-gitpython-remote-url-type.patch
];
build-system = with python3Packages; [