mirror of
https://github.com/actions/runner-images.git
synced 2025-12-27 11:58:15 +08:00
* Update azure-cli installation * Update curl installation * Update git-lfs installation * Add utils * Update gnupg installation * Add brew_install function * Revert jq installation * Add condition for the aws-sam-cli * Add return to function, revert aws-sam-cli changes, rename brew_install function * Fix typo Co-authored-by: MaksimZhukov <v-mazhuk@microsoft.com>
36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
#!/bin/bash -e -o pipefail
|
|
source ~/utils/invoke-tests.sh
|
|
|
|
source ~/utils/utils.sh
|
|
|
|
echo Installing Git...
|
|
brew_smart_install "git"
|
|
|
|
echo Installing Git LFS
|
|
brew_smart_install "git-lfs"
|
|
|
|
# Update global git config
|
|
git lfs install
|
|
# Update system git config
|
|
sudo git lfs install --system
|
|
|
|
echo Installing Hub
|
|
brew_smart_install "hub"
|
|
|
|
echo Disable all the Git help messages...
|
|
git config --global advice.pushUpdateRejected false
|
|
git config --global advice.pushNonFFCurrent false
|
|
git config --global advice.pushNonFFMatching false
|
|
git config --global advice.pushAlreadyExists false
|
|
git config --global advice.pushFetchFirst false
|
|
git config --global advice.pushNeedsForce false
|
|
git config --global advice.statusHints false
|
|
git config --global advice.statusUoption false
|
|
git config --global advice.commitBeforeMerge false
|
|
git config --global advice.resolveConflict false
|
|
git config --global advice.implicitIdentity false
|
|
git config --global advice.detachedHead false
|
|
git config --global advice.amWorkDir false
|
|
git config --global advice.rmHints false
|
|
|
|
invoke_tests "Common" "Git" |