From 63c06b0c58ace31b24ba387184f4b419e977e414 Mon Sep 17 00:00:00 2001 From: AlexanderGitin <102294679+AlexanderGitin@users.noreply.github.com> Date: Wed, 11 May 2022 18:55:42 +0300 Subject: [PATCH] [MacOS] Add safe directory setting to git config (#5452) --- images/macos/provision/core/git.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/images/macos/provision/core/git.sh b/images/macos/provision/core/git.sh index 0dd8ba739..3a62d85e1 100644 --- a/images/macos/provision/core/git.sh +++ b/images/macos/provision/core/git.sh @@ -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"