pull/403/head test-arm64
王良 2 weeks ago
parent 5e4e8b8385
commit 6a5edf44bc

@ -56,13 +56,13 @@ const Plugin = function (context) {
try {
await shell.exec(['git config --global --unset https.proxy '], { type: 'cmd' })
} catch (ignore) {
} catch {
}
if (config.get().plugin.git.setting.sslVerify === true) {
try {
await shell.exec(['git config --global --unset http.sslVerify '], { type: 'cmd' })
} catch (ignore) {
} catch {
}
}
@ -70,7 +70,7 @@ const Plugin = function (context) {
for (const url in config.get().plugin.git.setting.noProxyUrls) {
try {
await shell.exec([`git config --global --unset http."${url}".proxy `], { type: 'cmd' })
} catch (ignore) {
} catch {
}
}
}

@ -97,7 +97,7 @@ function loadLastModifiedTimeFromTxt (fileTxt) {
if (matched && matched.length > 0) {
try {
return new Date(matched[0])
} catch (ignore) {
} catch {
return null
}
}

Loading…
Cancel
Save