Repository navigation
Commit 3dcf6aa
committed
test(server): drop inherited git URL rewrites from the test git config
gitConfig.setup.ts appends stable settings to GIT_CONFIG_* so every git
child in the server tests sees the same config. It kept whatever the
shell had already set. Some sandboxed shells set
url.https://github.com/.insteadOf there, and git then reports the
rewritten URL back for fixture remotes. Git has no setting that cancels
an insteadOf, so three tests failed outside CI: one in GitVcsDriver
and two in RepositoryIdentityResolver.
The setup now rebuilds GIT_CONFIG_* without url.*.insteadOf and
url.*.pushInsteadOf entries. Other inherited keys stay. No test
assertion changes.
Fails before (with the rewrite in the environment): 3 remote URL
assertions. Passes after, with the same environment.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01A1D6J2UMPo7YBWQFvbg1br1 parent fc82653 commit 3dcf6aa
1 file changed
Lines changed: 21 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
16 | 32 | | |
0 commit comments