mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
Add skip SSH host key verification and fix self-hosted server support (#121)
* Add SSH host key verification with automatic trust and SCP-style URL support * Fix TypeScript errors for SSH host key schema and test mocks
This commit is contained in:
1 parent
677ce748cd
commit
7341dce1ef
25 files changed
+203
-123
No files matched your search
@@ -8,6 +8,7 @@ import { isNoUpstreamError, parseBranchNameFromError } from '../../utils/git-err
|
||||
import { SettingsService } from '../settings'
|
||||
import type { Database } from 'bun:sqlite'
|
||||
import type { GitBranch, GitCommit, FileDiffResponse, GitDiffOptions, GitStatusResponse, GitFileStatus, GitFileStatusType } from '../../types/git'
|
||||
import type { GitCredential } from '@opencode-manager/shared'
|
||||
import path from 'path'
|
||||
|
||||
export class GitService {
|
||||
@@ -198,7 +199,7 @@ export class GitService {
|
||||
const authEnv = this.gitAuthService.getGitEnvironment()
|
||||
|
||||
const settings = this.settingsService.getSettings('default')
|
||||
const gitCredentials = (settings.preferences.gitCredentials || []) as import('../../utils/git-auth').GitCredential[]
|
||||
const gitCredentials = (settings.preferences.gitCredentials || []) as GitCredential[]
|
||||
const identity = await resolveGitIdentity(settings.preferences.gitIdentity, gitCredentials)
|
||||
const identityEnv = identity ? createGitIdentityEnv(identity) : {}
|
||||
|
||||
|
||||
Reference in new issue
Block a user