diff --git a/packages/core/src/modules/plugin/git/index.js b/packages/core/src/modules/plugin/git/index.js index 3489c2af..4794ad3d 100644 --- a/packages/core/src/modules/plugin/git/index.js +++ b/packages/core/src/modules/plugin/git/index.js @@ -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' })