Skip to content

Commit f57bc06

Browse files
committed
fix: git clone: Fix filter arg
1 parent 735b930 commit f57bc06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libvcs/cmd/git.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ def clone(
179179
url: str,
180180
separate_git_dir: Optional[StrOrBytesPath] = None,
181181
template: Optional[str] = None,
182-
filter: Optional[str] = None,
183182
depth: Optional[str] = None,
184183
branch: Optional[str] = None,
185184
origin: Optional[str] = None,
@@ -206,6 +205,7 @@ def clone(
206205
no_remote_submodules: Optional[bool] = None,
207206
verbose: Optional[bool] = None,
208207
quiet: Optional[bool] = None,
208+
**kwargs,
209209
):
210210
"""Clone a working copy from an git repo.
211211
@@ -236,7 +236,7 @@ def clone(
236236
local_flags.append(f"--template={template}")
237237
if separate_git_dir is not None:
238238
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:
240240
local_flags.append(f"--filter={filter}")
241241
if depth is not None:
242242
local_flags.append(f"--depth {depth}")

0 commit comments

Comments
 (0)