Skip to content

Commit 978edd6

Browse files
authored
fix dulwich warning ls-remote result dict (#421)
1 parent 2e16d50 commit 978edd6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ requires-python = ">=3.9"
2323
dynamic = ["version"]
2424
dependencies = [
2525
"gitpython>3",
26-
"dulwich>=0.22.1",
26+
"dulwich>=0.23.1",
2727
"pygit2>=1.14.0",
2828
"pygtrie>=2.3.2",
2929
"fsspec[tqdm]>=2024.2.0",

src/scmrepo/git/backend/dulwich/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ def ls_remote(url: str) -> dict[str, str]:
990990
from dulwich.client import HTTPUnauthorized
991991

992992
try:
993-
refs = porcelain.ls_remote(url)
993+
refs = porcelain.ls_remote(url).refs
994994
return {os.fsdecode(ref): sha.decode("ascii") for ref, sha in refs.items()}
995995
except HTTPUnauthorized as exc:
996996
raise AuthError(url) from exc

0 commit comments

Comments
 (0)