fix: 修复git set proxy 命令执行出错的bug
parent
b1ed9f4d31
commit
ee4b63a933
|
@ -28,7 +28,7 @@ const Plugin = function (context) {
|
|||
`git config --global https.proxy http://${ip}:${port} `
|
||||
]
|
||||
if (pluginConfig.setting.sslVerify === false) {
|
||||
cmds.push('git config http.sslVerify "false"')
|
||||
cmds.push('git config --global http.sslVerify false ')
|
||||
}
|
||||
|
||||
const ret = await shell.exec(cmds, { type: 'cmd' })
|
||||
|
@ -44,7 +44,7 @@ const Plugin = function (context) {
|
|||
'git config --global --unset http.proxy '
|
||||
]
|
||||
if (pluginConfig.setting.sslVerify === false) {
|
||||
cmds.push('git config --unset http.sslVerify ')
|
||||
cmds.push('git config --global http.sslVerify true ')
|
||||
}
|
||||
const ret = await shell.exec(cmds, { type: 'cmd' })
|
||||
event.fire('status', { key: 'plugin.git.enabled', value: false })
|
||||
|
|
Loading…
Reference in New Issue