Fix SSH setup hooks for remote worktrees (#2477)

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Jinwoo Hong
2026-05-20 20:50:02 -07:00
committed by GitHub
co-authored by Orca
parent fd1cbdf3c5
commit c8c7553ecf
6 changed files with 265 additions and 10 deletions
+3
View File
@@ -5,6 +5,9 @@ export function buildSetupRunnerCommand(
platform: SetupRunnerCommandPlatform
): string {
if (platform === 'windows') {
if (runnerScriptPath.startsWith('/')) {
return `bash ${quotePosixArg(runnerScriptPath)}`
}
if (isWslUncPath(runnerScriptPath)) {
const linuxPath = wslUncToLinuxPath(runnerScriptPath)
return `bash ${quotePosixArg(linuxPath)}`