feat: add WSL support for repos on WSL filesystems (#375)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jinwoo Hong
2026-04-07 21:02:36 -04:00
committed by GitHub
co-authored by Claude Opus 4.6
parent beb62ff580
commit f6ec69c969
36 changed files with 1380 additions and 351 deletions
+7 -3
View File
@@ -1,7 +1,12 @@
import { execFile } from 'child_process'
import { promisify } from 'util'
import { gitExecFileAsync, ghExecFileAsync } from '../git/runner'
// Why: legacy generic execFile wrapper — only used by callers that don't need
// WSL-aware routing (e.g. non-repo-scoped gh commands). Repo-scoped callers
// should use ghExecFileAsync or gitExecFileAsync from the runner instead.
export const execFileAsync = promisify(execFile)
export { ghExecFileAsync, gitExecFileAsync }
// Concurrency limiter - max 4 parallel gh processes
const MAX_CONCURRENT = 4
@@ -44,9 +49,8 @@ export async function getOwnerRepo(
return ownerRepoCache.get(repoPath)!
}
try {
const { stdout } = await execFileAsync('git', ['remote', 'get-url', 'origin'], {
cwd: repoPath,
encoding: 'utf-8'
const { stdout } = await gitExecFileAsync(['remote', 'get-url', 'origin'], {
cwd: repoPath
})
const match = stdout.trim().match(/github\.com[:/]([^/]+)\/([^/.]+?)(?:\.git)?$/)
if (match) {