mirror of
https://github.com/actions/runner-images.git
synced 2026-01-05 01:35:22 +08:00
[MacOS] Add safe directory setting to git config (#5452)
This commit is contained in:
@@ -2,11 +2,9 @@
|
||||
source ~/utils/utils.sh
|
||||
|
||||
echo Installing Git...
|
||||
# Temporary hardcode version 2.35.1 due to the issue with the actions\checkout https://github.com/actions/checkout/issues/76
|
||||
brew tap-new local/git
|
||||
brew extract --version=2.35.1 git local/git
|
||||
brew install git@2.35.1
|
||||
brew untap -f local/homebrew-git
|
||||
brew_smart_install "git"
|
||||
|
||||
git config --global --add safe.directory "*"
|
||||
|
||||
echo Installing Git LFS
|
||||
brew_smart_install "git-lfs"
|
||||
|
||||
Reference in New Issue
Block a user