From 0e1de0bcdfe37103779d08cdd52646664de4fb7e Mon Sep 17 00:00:00 2001 From: sandroid Date: Thu, 18 Dec 2025 15:12:00 +0100 Subject: [PATCH] test: ignore global git config when running tests --- 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 0e664eef..9d626faf 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