This commit is contained in:
Kasra Bigdeli
2020-03-03 19:38:52 -05:00
parent ccfceec4b5
commit da82db0f90
+2 -2
View File
@@ -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(/\/$/, '')
}
}