From 251ebd36ae0ad7921567dd07c119d2986f4e440b Mon Sep 17 00:00:00 2001 From: Ivan Shcheklein Date: Wed, 16 Jul 2025 21:24:38 -0700 Subject: [PATCH 1/2] fix dulwich warning ls-remote result dict --- src/scmrepo/git/backend/dulwich/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scmrepo/git/backend/dulwich/__init__.py b/src/scmrepo/git/backend/dulwich/__init__.py index 1b599ab9..71def17b 100644 --- a/src/scmrepo/git/backend/dulwich/__init__.py +++ b/src/scmrepo/git/backend/dulwich/__init__.py @@ -990,7 +990,7 @@ def ls_remote(url: str) -> dict[str, str]: from dulwich.client import HTTPUnauthorized try: - refs = porcelain.ls_remote(url) + refs = porcelain.ls_remote(url).refs return {os.fsdecode(ref): sha.decode("ascii") for ref, sha in refs.items()} except HTTPUnauthorized as exc: raise AuthError(url) from exc From 3b94cb683cba0c096252526bb160084f0e9ed662 Mon Sep 17 00:00:00 2001 From: Ivan Shcheklein Date: Thu, 17 Jul 2025 15:47:03 -0700 Subject: [PATCH 2/2] bump minimum dulwich --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3557a902..8182e691 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,7 @@ requires-python = ">=3.9" dynamic = ["version"] dependencies = [ "gitpython>3", - "dulwich>=0.22.1", + "dulwich>=0.23.1", "pygit2>=1.14.0", "pygtrie>=2.3.2", "fsspec[tqdm]>=2024.2.0",