mirror of
https://github.com/stablyai/orca.git
synced 2026-11-19 04:23:57 +00:00
fix(git): fence WSL login-shell stdout for all buffered git reads (#35053)
Buffered gitExecFileAsync reads now always fence login-shell rc output, and non-zero exits de-fence error.stdout. The per-call captureWslLoginShellOutput opt-in is removed since it is no longer meaningful. Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
This commit is contained in:
@@ -69,8 +69,7 @@ export async function canCheckoutExistingLocalBranch(
|
||||
const ref = `refs/heads/${name}`
|
||||
const { stdout } = await gitExecFileAsync(['for-each-ref', '--format=%(refname)', ref], {
|
||||
cwd: repoPath,
|
||||
...gitOptions,
|
||||
captureWslLoginShellOutput: true
|
||||
...gitOptions
|
||||
})
|
||||
return stdout.split(/\r?\n/).includes(ref)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user