mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-25 16:53:36 +05:00
Compare commits
2 Commits
587b000e2d
...
7b69adfe7d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7b69adfe7d | ||
|
|
7e4ba0d8cd |
@@ -255,19 +255,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()]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user