refactor: 统一Git信息获取函数,修复PowerShell中%转义问题
- 新增 getGitCommitInfo() 统一函数获取作者、提交信息、邮箱 - 新增 runCommandWithOutput() 跨平台命令执行函数 - 修复 Windows PowerShell 中 %B/%an/%ae 被解释为变量的问题 - 使用 sh -c 包装 git 命令避免 PowerShell 转义问题 - 简化 post 阶段代码,复用统一函数
Showing
Please
register
or
sign in
to comment