فهرست منبع

porcelain.clone: Drop refspecs argument

This argument never worked properly for the v1 client protocol and is untested.

We should re-add it, but until I'd rather not implement it than have it half-working.
Jelmer Vernooij 4 ماه پیش
والد
کامیت
5fc0b7e146
1فایلهای تغییر یافته به همراه0 افزوده شده و 4 حذف شده
  1. 0 4
      dulwich/porcelain.py

+ 0 - 4
dulwich/porcelain.py

@@ -517,7 +517,6 @@ def clone(
     depth: Optional[int] = None,
     branch: Optional[Union[str, bytes]] = None,
     config: Optional[Config] = None,
-    refspecs=None,
     filter_spec=None,
     protocol_version: Optional[int] = None,
     **kwargs,
@@ -563,8 +562,6 @@ def clone(
     if checkout and bare:
         raise Error("checkout and bare are incompatible")
 
-    encoded_refs = encode_refspecs(refspecs)
-
     if target is None:
         target = source.split("/")[-1]
 
@@ -588,7 +585,6 @@ def clone(
         branch=branch,
         progress=errstream.write,
         depth=depth,
-        ref_prefix=encoded_refs,
         filter_spec=filter_spec,
         protocol_version=protocol_version,
     )