test: isolate tests from system/global git config

main

Commit

pjbgf1mo ago

go-git's default NewAuto ConfigLoader and the git binary both read the host's global/system config, leaking settings like commit.gpgSign=true into tests. Add syncertest.IsolateGitConfig, which points GIT_CONFIG_GLOBAL/SYSTEM at os.DevNull, and call it from each affected TestMain. This replaces the syncer package's go-git-only plugin override, which left the SSH integration test still reading the host config.

Assisted-by: Claude Opus 4.8 noreply@anthropic.com Signed-off-by: Paulo Gomes paulo@entire.io Entire-Checkpoint: 01KXDSREBG8S07KQ15HHD21NHF

Checkpoints

Fix go-git Compilation and Import Ordering

Claude CodeOpus 4.8[1m]
View session
Checkpoint 1