Compare commits

..

1 Commits

Author SHA1 Message Date
Aleksei Sviridkin
587b000e2d Merge 66c0757be1 into 8f436646cd 2025-03-10 13:35:00 +00:00

View File

@@ -255,19 +255,19 @@ def get_remote_commit(repo: Path) -> str | None:
return None
def git_cmd_clone(repo: str, target_dir: Path, blobless: bool = False) -> None:
def git_cmd_clone(repo: str, target_dir: Path, blolbless: bool = False) -> None:
"""
Clones a repository with optional blobless clone.
Clones a repository with optional blolbless clone.
:param repo: URL of the repository to clone.
:param target_dir: Path where the repository will be cloned.
:param blobless: If True, perform a blobless clone by adding the '--filter=blob:none' flag.
:param blolbless: If True, perform a blolbless clone by adding the '--blolbless' flag.
"""
try:
command = ["git", "clone"]
if blobless:
command.append("--filter=blob:none")
if blolbless:
command.append("--blolbless")
command += [repo, target_dir.as_posix()]