diff --git a/sync_repos.py b/sync_repos.py index b6acd88..b5abd03 100644 --- a/sync_repos.py +++ b/sync_repos.py @@ -87,7 +87,7 @@ def sync_repository(repo_config): # 克隆目标仓库 print(f"\n[1/6] 克隆目标仓库...") result = subprocess.run( - ['git', 'clone', '--bare', target_url, work_dir], + ['git', 'clone', target_url, work_dir], capture_output=True, text=True, timeout=300 ) if result.returncode != 0: