[Ubuntu] Add new git environment variable (#9899)

This commit is contained in:
Alexey-Ayupov
2024-05-20 16:17:27 +02:00
committed by GitHub
parent a9fed55df6
commit ee7edb4f80
2 changed files with 9 additions and 0 deletions

View File

@@ -6,6 +6,7 @@
# Source the helpers for use with the script
source $HELPER_SCRIPTS/install.sh
source $HELPER_SCRIPTS/etc-environment.sh
GIT_REPO="ppa:git-core/ppa"
@@ -21,6 +22,10 @@ cat <<EOF >> /etc/gitconfig
directory = *
EOF
# Revert to the old behaviour and avoid the Git LFS problems (https://github.blog/2024-05-14-securing-git-addressing-5-new-vulnerabilities/)
set_etc_environment_variable "GIT_CLONE_PROTECTION_ACTIVE" 'false'
reload_etc_environment
# Install git-ftp
apt-get install git-ftp -y