mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 22:10:14 +00:00
ki: fix build with gitpython 3.1.57+ (#561616)
This commit is contained in:
13
pkgs/by-name/ki/ki/fix-gitpython-remote-url-type.patch
Normal file
13
pkgs/by-name/ki/ki/fix-gitpython-remote-url-type.patch
Normal 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`.
|
||||
@@ -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; [
|
||||
|
||||
Reference in New Issue
Block a user