@@ -155,12 +155,12 @@ def init_repository(
155
155
156
156
157
157
def clone_repository (
158
- url : str ,
159
- path : str ,
158
+ url : str | bytes | os . PathLike ,
159
+ path : str | bytes | os . PathLike ,
160
160
bare : bool = False ,
161
161
repository : typing .Callable | None = None ,
162
162
remote : typing .Callable | None = None ,
163
- checkout_branch : str | None = None ,
163
+ checkout_branch : str | bytes | None = None ,
164
164
callbacks : RemoteCallbacks | None = None ,
165
165
depth : int = 0 ,
166
166
proxy : None | bool | str = None ,
@@ -172,9 +172,9 @@ def clone_repository(
172
172
173
173
Parameters:
174
174
175
- url : str
175
+ url : str or bytes or pathlike object
176
176
URL of the repository to clone.
177
- path : str
177
+ path : str or bytes or pathlike object
178
178
Local path to clone into.
179
179
bare : bool
180
180
Whether the local repository should be bare.
@@ -190,7 +190,7 @@ def clone_repository(
190
190
The repository callback has `(path, bare) -> Repository` as a
191
191
signature. The Repository it returns will be used instead of creating a
192
192
new one.
193
- checkout_branch : str
193
+ checkout_branch : str or bytes
194
194
Branch to checkout after the clone. The default is to use the remote's
195
195
default branch.
196
196
callbacks : RemoteCallbacks
0 commit comments