fix(gitlab): bound and coalesce auth probes (#9476)

This commit is contained in:
OrcaWin
2026-07-19 16:54:31 -07:00
committed by GitHub
parent 245d79cc8c
commit b320bcb374
10 changed files with 427 additions and 138 deletions
+2 -2
View File
@@ -17895,7 +17895,7 @@ export class OrcaRuntimeService {
} catch (error) {
return { error: error instanceof Error ? error.message : 'Could not resolve git remote.' }
}
const knownHosts = await getGlabKnownHosts(repo.connectionId ?? null)
const knownHosts = await getGlabKnownHosts(repo.connectionId ?? null, localWorktreeGitOptions)
const projectRef = await getGitLabProjectRefForRemote(
repo.path,
remote,
@@ -18020,7 +18020,7 @@ export class OrcaRuntimeService {
connectionId?: string | null,
localGitOptions: { wslDistro?: string } = {}
): Promise<string> {
const knownHosts = await getGlabKnownHosts(connectionId)
const knownHosts = await getGlabKnownHosts(connectionId, localGitOptions)
const localGitOptionArgs =
Object.keys(localGitOptions).length > 0 ? ([localGitOptions] as const) : []
if (preference === 'origin') {