File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,6 @@ def clone(
179
179
url : str ,
180
180
separate_git_dir : Optional [StrOrBytesPath ] = None ,
181
181
template : Optional [str ] = None ,
182
- filter : Optional [str ] = None ,
183
182
depth : Optional [str ] = None ,
184
183
branch : Optional [str ] = None ,
185
184
origin : Optional [str ] = None ,
@@ -206,6 +205,7 @@ def clone(
206
205
no_remote_submodules : Optional [bool ] = None ,
207
206
verbose : Optional [bool ] = None ,
208
207
quiet : Optional [bool ] = None ,
208
+ ** kwargs ,
209
209
):
210
210
"""Clone a working copy from an git repo.
211
211
@@ -236,7 +236,7 @@ def clone(
236
236
local_flags .append (f"--template={ template } " )
237
237
if separate_git_dir is not None :
238
238
local_flags .append (f"--separate-git-dir={ separate_git_dir } " )
239
- if filter is not None :
239
+ if ( filter := kwargs . pop ( "filter" , None )) is not None :
240
240
local_flags .append (f"--filter={ filter } " )
241
241
if depth is not None :
242
242
local_flags .append (f"--depth { depth } " )
You can’t perform that action at this time.
0 commit comments