fix(ci): allow larger tracked-file listings in static gates

This commit is contained in:
07akioni committed 2026-10-22 20:35:15 +08:00
1 parent 86c39abae0
commit 7f2f9b8856
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -50,7 +50,7 @@ export function findConcreteTermViolations(file: string, source: string): Concre
}
function trackedFiles(repoRoot: string): string[] {
const files = execFileSync('git', ['ls-files', '-z'], { cwd: repoRoot, encoding: 'utf8' })
const files = execFileSync('git', ['ls-files', '-z'], { cwd: repoRoot, encoding: 'utf8', maxBuffer: 16 * 1024 * 1024 })
.split('\0')
.filter(file => file !== '')
if (!files.includes('AGENTS.md')
+1 -1
View File
@@ -66,7 +66,7 @@ export function findUnavailableRepositoryReferences(file: string, source: string
}
function trackedFiles(repoRoot: string): string[] {
return execFileSync('git', ['ls-files', '-z'], { cwd: repoRoot, encoding: 'utf8' })
return execFileSync('git', ['ls-files', '-z'], { cwd: repoRoot, encoding: 'utf8', maxBuffer: 16 * 1024 * 1024 })
.split('\0')
.filter(file => file !== '')
}