fix(git): hide spawned git windows on Windows (#301)

This commit is contained in:
Xinchen Lee
2026-08-22 23:11:27 +08:00
committed by GitHub
parent e867e27106
commit 71c5413e5c
2 changed files with 42 additions and 0 deletions
+1
View File
@@ -96,6 +96,7 @@ function runGit(cwd: string, args: string[], timeoutMs = 30_000): Promise<string
return new Promise<string>((resolvePromise, reject) => {
const child = spawn('git', full, {
stdio: ['ignore', 'pipe', 'pipe'],
windowsHide: true,
env: { ...process.env, GIT_OPTIONAL_LOCKS: '0' },
})
let stdout = ''