fix: 补齐证据哈希与 runner 安装脚本边界
This commit is contained in:
1 parent
1001c43af6
commit
040504774d
4 files changed
+10
-5
No files matched your search
@@ -461,6 +461,7 @@ export function sourceTreeHash(root, options = {}) {
|
||||
.split("\0")
|
||||
.filter((file) => file && isEvidenceSourcePath(file))
|
||||
.map((file) => path.join(rootPath, file));
|
||||
if (!staged) files = files.filter((file) => fs.existsSync(file) && fs.statSync(file).isFile());
|
||||
readContent = staged
|
||||
? (file) =>
|
||||
execFileSync("git", ["show", ":" + path.relative(rootPath, file)], {
|
||||
|
||||
Reference in new issue
Block a user