mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[Windows] Add safe directory to gitconfig (#5453)
This commit is contained in:
@@ -2,10 +2,14 @@
|
|||||||
## File: Install-Git.ps1
|
## File: Install-Git.ps1
|
||||||
## Desc: Install Git for Windows
|
## Desc: Install Git for Windows
|
||||||
################################################################################
|
################################################################################
|
||||||
|
Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
|
||||||
|
|
||||||
# Install git
|
# Install git
|
||||||
# Temporary hardcode version 2.35.1 due to the issue with the actions\checkout https://github.com/actions/checkout/issues/760
|
Choco-Install -PackageName git -ArgumentList '--installargs="/VERYSILENT /NORESTART /NOCANCEL /SP- /CLOSEAPPLICATIONS /RESTARTAPPLICATIONS /o:PathOption=CmdTools /o:BashTerminalOption=ConHost /o:EnableSymlinks=Enabled /COMPONENTS=gitlfs"'
|
||||||
Choco-Install -PackageName git -ArgumentList '--version', "2.35.1.2", '--installargs="/VERYSILENT /NORESTART /NOCANCEL /SP- /CLOSEAPPLICATIONS /RESTARTAPPLICATIONS /o:PathOption=CmdTools /o:BashTerminalOption=ConHost /o:EnableSymlinks=Enabled /COMPONENTS=gitlfs"'
|
|
||||||
|
Update-SessionEnvironment
|
||||||
|
|
||||||
|
git config --system --add safe.directory "*"
|
||||||
|
|
||||||
# Install hub
|
# Install hub
|
||||||
Choco-Install -PackageName hub
|
Choco-Install -PackageName hub
|
||||||
|
|||||||
Reference in New Issue
Block a user