[Windows] Fix hub installation (#2403)

* fix hub installation

* add comment

* small fix

* add link to the issue
This commit is contained in:
Dibir Magomedsaygitov
2021-01-12 12:49:54 +03:00
committed by GitHub
parent afef0c94a8
commit c24eb0b7b5

View File

@@ -31,7 +31,8 @@ Install-Binary -Url $downloadUrl `
"/o:EnableSymlinks=Enabled", `
"/COMPONENTS=gitlfs")
Choco-Install -PackageName hub
# Install hub with --ignore-dependencies option to prevent the installation of the git package. See details in https://github.com/actions/virtual-environments/issues/2375
Choco-Install -PackageName hub -ArgumentList "--ignore-dependencies"
# Disable GCM machine-wide
[Environment]::SetEnvironmentVariable("GCM_INTERACTIVE", "Never", [System.EnvironmentVariableTarget]::Machine)