mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-26 01:03:35 +05:00
Compare commits
6 Commits
v6.0.0-alp
...
e4c9c3dff7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e4c9c3dff7 | ||
|
|
777f5e45e7 | ||
|
|
d5119bc264 | ||
|
|
8cb66071ac | ||
|
|
acf0faf158 | ||
|
|
5c219ec544 |
@@ -10,6 +10,7 @@ trusted_clients:
|
||||
169.254.0.0/16
|
||||
172.16.0.0/12
|
||||
192.168.0.0/16
|
||||
FC00::/7
|
||||
FE80::/10
|
||||
::1/128
|
||||
cors_domains:
|
||||
|
||||
@@ -253,9 +253,15 @@ def get_remote_commit(repo: Path) -> str | None:
|
||||
return None
|
||||
|
||||
|
||||
def git_cmd_clone(repo: str, target_dir: Path) -> None:
|
||||
def git_cmd_clone(repo: str, target_dir: Path, depth: int = 1) -> None:
|
||||
try:
|
||||
command = ["git", "clone", repo, target_dir.as_posix()]
|
||||
command = [
|
||||
"git", "clone",
|
||||
"--depth", str(depth),
|
||||
"--single-branch",
|
||||
repo,
|
||||
target_dir.as_posix()
|
||||
]
|
||||
run(command, check=True)
|
||||
|
||||
Logger.print_ok("Clone successful!")
|
||||
|
||||
Reference in New Issue
Block a user