Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

fix(ci): 固定验证基线读取的 UTF-8 编码

longmeidao806f14a8f2db
diff --git a/scripts/ci_plan.py b/scripts/ci_plan.py
index 7e3da38d6..7754a3530 100644
--- a/scripts/ci_plan.py
+++ b/scripts/ci_plan.py
@@ -112,7 +112,7 @@ def github_verified_base(root: Path) -> str:
runs = json.loads(payload)['workflow_runs']
rows = [{'sha': run['head_sha'], 'status': 'success'} for run in runs
if run.get('conclusion') == 'success' and run.get('event') == 'push' and run.get('head_branch') == 'master']
- current = subprocess.check_output(['git', '-C', str(root), 'rev-parse', 'HEAD'], text=True).strip()
+ current = subprocess.check_output(['git', '-C', str(root), 'rev-parse', 'HEAD'], text=True, encoding='utf-8').strip()
base = verified_base(rows, current, ancestor_of_head(root))
if base is None:
raise ValueError('最近成功的主线 Test 中没有当前提交的祖先')