fix: 修复git 代理开关 sslVerify无效的bug
parent
816d55a938
commit
d7bba012c8
|
@ -27,7 +27,7 @@ const Plugin = function (context) {
|
||||||
`git config --global http.proxy http://${ip}:${port} `,
|
`git config --global http.proxy http://${ip}:${port} `,
|
||||||
`git config --global https.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 ')
|
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 https.proxy ',
|
||||||
'git config --global --unset http.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 ')
|
cmds.push('git config --global http.sslVerify true ')
|
||||||
}
|
}
|
||||||
const ret = await shell.exec(cmds, { type: 'cmd' })
|
const ret = await shell.exec(cmds, { type: 'cmd' })
|
||||||
|
|
Loading…
Reference in New Issue