mirror of
https://github.com/caprover/caprover
synced 2026-09-25 08:05:35 +00:00
This commit is contained in:
@@ -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(/\/$/, '')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user