fix(ci): 修复 auto_fix_formatting git checkout 参数顺序错误 #662

Merged
auto-approve-bot merged 1 commits from fix/ci-autofix-checkout-bug into develop 2026-07-21 00:18:58 +08:00
+1 -1
View File
@@ -62,7 +62,7 @@ def ensure_git_repo(api_url, repo, token, pr_number):
# 强制checkout到源分支(覆盖tarball内容)
# tarball是merge后的commit,源分支才是我们要修改并推送的目标
print("切换到源分支...")
run(f"git checkout -B --force {head_branch} FETCH_HEAD")
run(f"git checkout -f -B {head_branch} FETCH_HEAD")
result = run("git status --porcelain")
if result.stdout.strip():