Commit 3dda7ee
test(import): fully isolate git config in author fallback test
TestRun_UnconfiguredGitIdentityFallsBackToDefaults overrode only HOME and
XDG_CONFIG_HOME, but GetGitAuthorFromRepo resolves GlobalScope through
go-git's Auto loader, which also honors GIT_CONFIG_GLOBAL and system
/etc/gitconfig. On any machine/CI where one of those carries a git identity
the "Unknown"/"unknown@local" assertion would flake.
Neutralize every global source the way the checkpoint package's pointHomeAt
helper already does: set GIT_CONFIG_NOSYSTEM=1 and unset GIT_CONFIG_GLOBAL.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: 01KY9MM18RHEBYFH4Y4QVJK7RT1 parent 4df67dc commit 3dda7ee
1 file changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
441 | | - | |
442 | | - | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
443 | 447 | | |
444 | 448 | | |
445 | 449 | | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
446 | 457 | | |
447 | 458 | | |
448 | 459 | | |
| |||
0 commit comments