From da82db0f90cac794849e10c51f70cdf0ebf30a58 Mon Sep 17 00:00:00 2001 From: Kasra Bigdeli Date: Tue, 3 Mar 2020 19:38:52 -0500 Subject: [PATCH] Addressing https://github.com/caprover/caprover/issues/606 --- src/utils/GitHelper.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/GitHelper.ts b/src/utils/GitHelper.ts index 88a288d..603ab10 100644 --- a/src/utils/GitHelper.ts +++ b/src/utils/GitHelper.ts @@ -103,7 +103,7 @@ export default class GitHelper { return input.replace(/\/$/, '') } - // It returns a string like this "git@github.com:caprover/caprover-cli.git" + // It returns a string like this "ssh://git@github.com:caprover/caprover-cli.git" static sanitizeRepoPathSsh(input: string) { input = Utils.removeHttpHttps(input) if (!input.startsWith('git@')) { @@ -112,6 +112,6 @@ export default class GitHelper { input = 'git@' + input } - return input.replace(/\/$/, '') + return 'ssh://' + input.replace(/\/$/, '') } }