fix(deploy): 兼容维护用户与部署目录所有者不同的场景 #55

Merged
wangbo merged 1 commits from codex/mongo-memory-reclaim-20261023 into main 2026-10-23 16:31:02 +08:00
Owner

维护者以 root 运行脚本、部署仓库属于 admin 时,Git 的所有者检查会使版本记录读取失败,预览因此中止。只对已选择的脚本所在仓库、只在读取 HEAD 的单次 Git 命令中指定 safe.directory,不修改全局 Git 配置。

验证:5 项维护单测通过(0.022 秒),git diff --check 通过。客户先前失败发生在预览阶段,运行参数与持久配置未改变。合入后重新通过客户正式入口验收。

维护者以 root 运行脚本、部署仓库属于 admin 时,Git 的所有者检查会使版本记录读取失败,预览因此中止。只对已选择的脚本所在仓库、只在读取 HEAD 的单次 Git 命令中指定 safe.directory,不修改全局 Git 配置。 验证:5 项维护单测通过(0.022 秒),git diff --check 通过。客户先前失败发生在预览阶段,运行参数与持久配置未改变。合入后重新通过客户正式入口验收。
wangbo added 1 commit 2026-10-23 16:30:36 +08:00
wangbo merged commit d7ab86fc40 into main 2026-10-23 16:31:02 +08:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wangbo/easyai#55