Sync with 'maint'
[git/gitster.git] / ci / install-sdk.ps1
blob66f24838a40ecb9a3fe339e98ded46a21dd593a2
1 param(
2 [string]$directory='git-sdk',
3 [string]$url='https://github.com/git-for-windows/git-sdk-64/releases/download/ci-artifacts/git-sdk-x86_64-minimal.zip'
6 Invoke-WebRequest "$url" -OutFile git-sdk.zip
7 Expand-Archive -LiteralPath git-sdk.zip -DestinationPath "$directory"
8 Remove-Item -Path git-sdk.zip
10 New-Item -Path .git/info -ItemType Directory -Force
11 New-Item -Path .git/info/exclude -ItemType File -Force
12 Add-Content -Path .git/info/exclude -Value "/$directory"