fix(ssh): use SSH target label for home directory remote repos (#1031)

This commit is contained in:
Jinwoo Hong
2026-04-24 13:58:48 -07:00
committed by GitHub
parent bcce74e110
commit 68e658e082
7 changed files with 200 additions and 30 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ import { readFile, rm } from 'fs/promises'
import * as path from 'path'
import type { RelayDispatcher } from './dispatcher'
import type { RelayContext } from './context'
import { expandTilde } from './context'
import {
parseStatusOutput,
parseUnmergedEntry,
@@ -56,7 +57,7 @@ export class GitHandler {
opts?: { maxBuffer?: number }
): Promise<{ stdout: string; stderr: string }> {
return execFileAsync('git', args, {
cwd,
cwd: expandTilde(cwd),
encoding: 'utf-8',
maxBuffer: opts?.maxBuffer ?? MAX_GIT_BUFFER
})