Skip to content

Commit

Permalink
git clone 加上--recursive
Browse files Browse the repository at this point in the history
  • Loading branch information
cgf120 committed Nov 22, 2024
1 parent 333ce92 commit 34c5bfe
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 34c5bfe

Please sign in to comment.