fix(git): set 22 port in git add host

This commit is contained in:
Mauricio Siu
2024-07-04 00:39:11 -06:00
parent 4d251271b9
commit 59d662396e

View File

@@ -87,7 +87,6 @@ const addHostToKnownHosts = async (repositoryURL: string) => {
throw error; throw error;
} }
}; };
const sanitizeRepoPathSSH = (input: string) => { const sanitizeRepoPathSSH = (input: string) => {
const SSH_PATH_RE = new RegExp( const SSH_PATH_RE = new RegExp(
[ [
@@ -113,7 +112,7 @@ const sanitizeRepoPathSSH = (input: string) => {
return { return {
user: found.groups?.user ?? "git", user: found.groups?.user ?? "git",
domain: found.groups?.domain, domain: found.groups?.domain,
port: Number(found.groups?.port ?? 22), port: 22,
owner: found.groups?.owner ?? "", owner: found.groups?.owner ?? "",
repo: found.groups?.repo, repo: found.groups?.repo,
get repoPath() { get repoPath() {