@@ -155,12 +155,12 @@ def init_repository(
155155
156156
157157def clone_repository (
158- url : str ,
159- path : str ,
158+ url : str | bytes | os . PathLike ,
159+ path : str | bytes | os . PathLike ,
160160 bare : bool = False ,
161161 repository : typing .Callable | None = None ,
162162 remote : typing .Callable | None = None ,
163- checkout_branch : str | None = None ,
163+ checkout_branch : str | bytes | None = None ,
164164 callbacks : RemoteCallbacks | None = None ,
165165 depth : int = 0 ,
166166 proxy : None | bool | str = None ,
@@ -172,9 +172,9 @@ def clone_repository(
172172
173173 Parameters:
174174
175- url : str
175+ url : str or bytes or pathlike object
176176 URL of the repository to clone.
177- path : str
177+ path : str or bytes or pathlike object
178178 Local path to clone into.
179179 bare : bool
180180 Whether the local repository should be bare.
@@ -190,7 +190,7 @@ def clone_repository(
190190 The repository callback has `(path, bare) -> Repository` as a
191191 signature. The Repository it returns will be used instead of creating a
192192 new one.
193- checkout_branch : str
193+ checkout_branch : str or bytes
194194 Branch to checkout after the clone. The default is to use the remote's
195195 default branch.
196196 callbacks : RemoteCallbacks
0 commit comments