From d7bba012c8b720d1859b137e0364a998a15adbd0 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Wed, 9 Dec 2020 16:44:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dgit=20=E4=BB=A3?= =?UTF-8?q?=E7=90=86=E5=BC=80=E5=85=B3=20sslVerify=E6=97=A0=E6=95=88?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/src/modules/plugin/git/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' })