From 7e4ba0d8cd94bedc97238d7f0e071598bc4282ea Mon Sep 17 00:00:00 2001 From: Aleksei Sviridkin Date: Mon, 10 Mar 2025 22:42:42 +0300 Subject: [PATCH] fix(git_utils): rename blolbless parameter to blobless and update documentation for clarity Signed-off-by: Aleksei Sviridkin --- kiauh/utils/git_utils.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kiauh/utils/git_utils.py b/kiauh/utils/git_utils.py index 4cca992..6acba23 100644 --- a/kiauh/utils/git_utils.py +++ b/kiauh/utils/git_utils.py @@ -253,19 +253,19 @@ def get_remote_commit(repo: Path) -> str | 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 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: command = ["git", "clone"] - if blolbless: - command.append("--blolbless") + if blobless: + command.append("--filter=blob:none") command += [repo, target_dir.as_posix()]