From e33f4653f1758c9fab8ad70b526178869fcdd850 Mon Sep 17 00:00:00 2001 From: Matteo Cherubini Date: Thu, 25 Jun 2026 17:36:48 +0200 Subject: [PATCH] test: improve hermetic git repository setup in helpers --- tests/helpers.bash | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/tests/helpers.bash b/tests/helpers.bash index f92e21d..912ea24 100644 --- a/tests/helpers.bash +++ b/tests/helpers.bash @@ -88,16 +88,17 @@ EOF git init -q # Hermetic: ignore the user's global git config (signing, global hooks); # otherwise commit.gpgsign or a global core.hooksPath makes git commit fail here. - git config commit.gpgsign false - git config core.hooksPath "${base}/nohooks" - git config user.email t@t - git config user.name tester - git add . - git commit -qm init + git config --local user.name "Framework Test" + git config --local user.email "test@genome.local" + git config --local commit.gpgsign false + git config --local core.hooksPath "${base}/nohooks" + git branch -M main git remote add origin "${base}/origin.git" + git add . + git commit -q -m "chore: initial scaffold" git push -q -u origin main - ) >/dev/null + ) echo "${g}" }