fix: git ssh port incorrect default value
This commit is contained in:
1 parent
7cd5721ca1
commit
6a00a5dbce
2 files changed
+12
-2
No files matched your search
@@ -77,7 +77,7 @@ module.exports = {
|
||||
throw err
|
||||
}
|
||||
}
|
||||
if (this.config.sshPort <= 0) {
|
||||
if (!this.config.sshPort || !_.isSafeInteger(this.config.sshPort) || this.config.sshPort <= 0) {
|
||||
this.config.sshPort = 22
|
||||
}
|
||||
await this.git.addConfig('core.sshCommand', `ssh -i "${this.config.sshPrivateKeyPath}" -o StrictHostKeyChecking=no -p ${this.config.sshPort}`)
|
||||
|
||||
Reference in new issue
Block a user