Fix errors connecting to github from powershell and TLS1.2 in test scripts

This commit is contained in:
Nate McMaster 2018-08-31 11:20:58 -07:00
parent 64078159fa
commit a57ed95fd3
No known key found for this signature in database
GPG Key ID: A778D9601BD78810
1 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,6 @@
$ErrorActionPreference = 'Stop'
# Update the default TLS support to 1.2
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
function Assert-Git {
if (!(Get-Command git -ErrorAction Ignore)) {