test: ignore global git config when running tests (#485)

This commit is contained in:
sandr01d 2025-12-21 20:20:44 +01:00 committed by GitHub
parent a5f5ea5206
commit 024389f799
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,6 +3,10 @@
function set_up_before_script() {
source bin/git-forgit
# Ignore global git config files
export GIT_CONFIG_SYSTEM=/dev/null
export GIT_CONFIG_GLOBAL=/dev/null
# Create a temporary git repository for testing
cd "$(bashunit::temp_dir)" || return 1
git init -q