diff --git a/dulwich/client.py b/dulwich/client.py index a79d7dd74..5253edbcf 100644 --- a/dulwich/client.py +++ b/dulwich/client.py @@ -832,7 +832,7 @@ def clone( branch=None, progress=None, depth=None, - ref_prefix=[], + ref_prefix=[b"HEAD", b"refs/"], filter_spec=None, protocol_version: Optional[int] = None, ) -> Repo: @@ -928,7 +928,7 @@ def fetch( ] = None, progress: Optional[Callable[[bytes], None]] = None, depth: Optional[int] = None, - ref_prefix: Optional[List[bytes]] = [], + ref_prefix: Optional[List[bytes]] = [b"HEAD", b"refs/"], filter_spec: Optional[bytes] = None, protocol_version: Optional[int] = None, ) -> FetchPackResult: @@ -1009,7 +1009,7 @@ def fetch_pack( *, progress: Optional[Callable[[bytes], None]] = None, depth: Optional[int] = None, - ref_prefix=[], + ref_prefix=[b"HEAD", b"refs/"], filter_spec=None, protocol_version: Optional[int] = None, ): @@ -1311,7 +1311,7 @@ def fetch_pack( pack_data, progress=None, depth=None, - ref_prefix=[], + ref_prefix=[b"HEAD", b"refs/"], filter_spec=None, protocol_version: Optional[int] = None, ): @@ -1791,7 +1791,7 @@ def fetch( determine_wants=None, progress=None, depth=None, - ref_prefix=[], + ref_prefix=[b"HEAD", b"refs/"], filter_spec=None, **kwargs, ): @@ -1836,7 +1836,7 @@ def fetch_pack( pack_data, progress=None, depth=None, - ref_prefix: Optional[List[bytes]] = [], + ref_prefix: Optional[List[bytes]] = [b"HEAD", b"refs/"], filter_spec: Optional[bytes] = None, protocol_version: Optional[int] = None, ) -> FetchPackResult: @@ -2574,7 +2574,7 @@ def fetch_pack( pack_data, progress=None, depth=None, - ref_prefix=[], + ref_prefix=[b"HEAD", b"refs/"], filter_spec=None, protocol_version: Optional[int] = None, ):