fix(git_utils): rename blolbless parameter to blobless and update documentation for clarity

Signed-off-by: Aleksei Sviridkin <f@lex.la>
This commit is contained in:
Aleksei Sviridkin
2025-03-10 22:42:42 +03:00
parent 66c0757be1
commit 7e4ba0d8cd

View File

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