Commit cf81348
test: pin git fixtures to main branch, not machine default
initBareRepo (gitrepo and webhook e2e) created the initial commit on
whatever init.defaultBranch resolved to — master on machines where it is
unset — while the tests request the "main" branch, so clone-by-branch
failed with `couldn't find remote ref "refs/heads/main"`.
Pass --initial-branch=main to `git init --bare` so the bare HEAD and
initial branch are always main regardless of local git config.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent bc15269 commit cf81348
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
0 commit comments