Fix errors connecting to github from powershell and TLS1.2 in test scripts
This commit is contained in:
parent
64078159fa
commit
a57ed95fd3
|
|
@ -1,4 +1,6 @@
|
||||||
$ErrorActionPreference = 'Stop'
|
$ErrorActionPreference = 'Stop'
|
||||||
|
# Update the default TLS support to 1.2
|
||||||
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
||||||
|
|
||||||
function Assert-Git {
|
function Assert-Git {
|
||||||
if (!(Get-Command git -ErrorAction Ignore)) {
|
if (!(Get-Command git -ErrorAction Ignore)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue