mirror of
https://github.com/stablyai/orca.git
synced 2026-10-21 00:03:46 +00:00
fix(git): bypass WSL login shells for status reads
This commit is contained in:
@@ -13,3 +13,15 @@ export function gitOptionsForWorktree(
|
||||
...(options.signal ? { signal: options.signal } : {})
|
||||
}
|
||||
}
|
||||
|
||||
export function gitStatusReadOptionsForWorktree(
|
||||
cwd: string,
|
||||
options: GitRuntimeOptions = {}
|
||||
): {
|
||||
cwd: string
|
||||
wslDistro?: string
|
||||
signal?: AbortSignal
|
||||
preferWslDirectGit: true
|
||||
} {
|
||||
return { ...gitOptionsForWorktree(cwd, options), preferWslDirectGit: true }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user