From b2aef40c0b3ba2425fe2bd24aab3c061bfdf8d39 Mon Sep 17 00:00:00 2001 From: Kasra Bigdeli Date: Sat, 3 Jul 2021 10:27:37 -0700 Subject: [PATCH] Fixed https://github.com/caprover/caprover/issues/1139 --- src/utils/GitHelper.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/GitHelper.ts b/src/utils/GitHelper.ts index 43573b2..720a329 100644 --- a/src/utils/GitHelper.ts +++ b/src/utils/GitHelper.ts @@ -111,7 +111,9 @@ export default class GitHelper { input = Utils.removeHttpHttps(input) if (!input.startsWith('git@')) { // If we get here, we have something like github.com/username/repository.git - input = input.replace('/', ':') + if (input.indexOf(':') < 0) { + input = input.replace('/', ':') + } input = `git@${input}` }