From c24eb0b7b553f19281007b469e9da3ca66dc9e54 Mon Sep 17 00:00:00 2001 From: Dibir Magomedsaygitov <61747324+dibir-magomedsaygitov@users.noreply.github.com> Date: Tue, 12 Jan 2021 12:49:54 +0300 Subject: [PATCH] [Windows] Fix hub installation (#2403) * fix hub installation * add comment * small fix * add link to the issue --- images/win/scripts/Installers/Install-Git.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/images/win/scripts/Installers/Install-Git.ps1 b/images/win/scripts/Installers/Install-Git.ps1 index 27a61969..e8954ffe 100644 --- a/images/win/scripts/Installers/Install-Git.ps1 +++ b/images/win/scripts/Installers/Install-Git.ps1 @@ -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)