From 10d191a4b11c6f46bb1ab45c01ceefe34ca1e41c Mon Sep 17 00:00:00 2001 From: Richard Kuhnt Date: Mon, 18 Mar 2019 15:16:10 +0100 Subject: [PATCH] git.ps1: Don't use proxy if it's set to "none" --- lib/git.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/git.ps1 b/lib/git.ps1 index 6772be25f..5d3ff06eb 100644 --- a/lib/git.ps1 +++ b/lib/git.ps1 @@ -1,7 +1,7 @@ function git_proxy_cmd { $proxy = $(scoop config proxy) $cmd = "git $($args | ForEach-Object { "$_ " })" - if($proxy) { + if($proxy -and $proxy -ne 'none') { $cmd = "SET HTTPS_PROXY=$proxy&&SET HTTP_PROXY=$proxy&&$cmd" } & "$env:COMSPEC" /c $cmd