From 59d662396e6037026801579c2d1f52ab7c0351a3 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Thu, 4 Jul 2024 00:39:11 -0600 Subject: [PATCH] fix(git): set 22 port in git add host --- server/utils/providers/git.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/utils/providers/git.ts b/server/utils/providers/git.ts index 9c91ca19..e49867e7 100644 --- a/server/utils/providers/git.ts +++ b/server/utils/providers/git.ts @@ -87,7 +87,6 @@ const addHostToKnownHosts = async (repositoryURL: string) => { throw error; } }; - const sanitizeRepoPathSSH = (input: string) => { const SSH_PATH_RE = new RegExp( [ @@ -113,7 +112,7 @@ const sanitizeRepoPathSSH = (input: string) => { return { user: found.groups?.user ?? "git", domain: found.groups?.domain, - port: Number(found.groups?.port ?? 22), + port: 22, owner: found.groups?.owner ?? "", repo: found.groups?.repo, get repoPath() {