Skip to content

Commit 9676185

Browse files
authored
dulwich: remove redundant encode (#10675)
1 parent f0b5263 commit 9676185

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/poetry/vcs/git/backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def _fetch_remote_refs(cls, url: str, local: Repo) -> FetchPackResult:
254254

255255
with local:
256256
result: FetchPackResult = client.fetch(
257-
path.encode(),
257+
path,
258258
local,
259259
determine_wants=local.object_store.determine_wants_all,
260260
)

tests/integration/test_utils_vcs_git.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,7 @@ def _remote_refs(source_url: str, local_repo: Repo) -> FetchPackResult:
110110
path: str
111111
client, path = get_transport_and_path(source_url)
112112
return client.fetch(
113-
path.encode(),
114-
local_repo,
115-
determine_wants=local_repo.object_store.determine_wants_all,
113+
path, local_repo, determine_wants=local_repo.object_store.determine_wants_all
116114
)
117115

118116

0 commit comments

Comments
 (0)