fix(dev-infra): skip hook setup in CI

This commit is contained in:
Tianyi Cui
2026-07-27 21:54:04 +08:00
parent 4e7132e77b
commit 1f8a3dd7b1
8 changed files with 36 additions and 10 deletions

View File

@@ -569,6 +569,7 @@ function refuseScopedHooksPath(entry) {
}
async function main() {
if (process.env.CI === 'true') return
const probe = spawnSync('git', ['rev-parse', '--show-toplevel'], { encoding: 'utf8' })
if (probe.status !== 0) return
const root = stripGitLineTerminator(probe.stdout)