From 024389f7996e2494120e4d785f2787bebb83fc24 Mon Sep 17 00:00:00 2001 From: sandr01d <88739791+sandr01d@users.noreply.github.com> Date: Sun, 21 Dec 2025 20:20:44 +0100 Subject: [PATCH] test: ignore global git config when running tests (#485) --- tests/empty-state.test.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/empty-state.test.sh b/tests/empty-state.test.sh index 0e664ee..9d626fa 100644 --- a/tests/empty-state.test.sh +++ b/tests/empty-state.test.sh @@ -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