Skip to content

Commit

Permalink
Merge pull request #1 from cgf120/main
Browse files Browse the repository at this point in the history
git clone 加上--recursive
  • Loading branch information
shiertier authored Dec 3, 2024
2 parents 256dfc5 + 34c5bfe commit 63519ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def clone_and_checkout(repo_url: str, commit_log: str, output_dir: str):
# 1. 克隆仓库
try:
logging.info(f"克隆仓库 {repo_url}{clone_path}...")
subprocess.run(['git', 'clone', repo_url, clone_path], check=True)
subprocess.run(['git', 'clone','--recursive', repo_url, clone_path], check=True)

# 2. 进入仓库目录并切换到指定提交
logging.info(f"克隆仓库成功,切换到提交 {commit_log}...")
Expand Down

0 comments on commit 63519ba

Please sign in to comment.