fix: 修复git 代理开关 sslVerify无效的bug

pull/67/head
xiaojunnuo 2020-12-09 16:44:19 +08:00
parent 816d55a938
commit d7bba012c8
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ const Plugin = function (context) {
`git config --global http.proxy http://${ip}:${port} `,
`git config --global https.proxy http://${ip}:${port} `
]
if (pluginConfig.setting.sslVerify === true) {
if (config.get().plugin.git.setting.sslVerify === true) {
cmds.push('git config --global http.sslVerify false ')
}
@ -43,7 +43,7 @@ const Plugin = function (context) {
'git config --global --unset https.proxy ',
'git config --global --unset http.proxy '
]
if (pluginConfig.setting.sslVerify === true) {
if (config.get().plugin.git.setting.sslVerify === true) {
cmds.push('git config --global http.sslVerify true ')
}
const ret = await shell.exec(cmds, { type: 'cmd' })