[macOS] Add new git environment variable (#9900)

This commit is contained in:
Alexey-Ayupov
2024-05-20 23:37:11 +02:00
committed by GitHub
parent 5113d251a8
commit 5c60b0c2af
2 changed files with 6 additions and 0 deletions

View File

@@ -103,3 +103,6 @@ if [[ ! -d "/usr/local/bin" ]];then
fi fi
chmod +x $HOME/utils/invoke-tests.sh chmod +x $HOME/utils/invoke-tests.sh
sudo ln -s $HOME/utils/invoke-tests.sh /usr/local/bin/invoke_tests sudo ln -s $HOME/utils/invoke-tests.sh /usr/local/bin/invoke_tests
# Revert to the old behaviour and avoid the Git LFS problems (https://github.blog/2024-05-14-securing-git-addressing-5-new-vulnerabilities/)
echo "export GIT_CLONE_PROTECTION_ACTIVE=false" >> $HOME/.bashrc

View File

@@ -9,4 +9,7 @@ Describe "Git" {
It "git lfs is installed" -Skip:($os.IsBigSur) { It "git lfs is installed" -Skip:($os.IsBigSur) {
"git lfs version" | Should -ReturnZeroExitCode "git lfs version" | Should -ReturnZeroExitCode
} }
It "GIT_CLONE_PROTECTION_ACTIVE environment variable should be equal false" {
$env:GIT_CLONE_PROTECTION_ACTIVE | Should -BeExactly false
}
} }