fix(dev-infra): skip hook setup in CI
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user