Commit d8ffa2a
committed
fix(test): materialize main branch in smoke test before bare clone
The smoke test cloned the repo with --bare, but actions/checkout@v4
only creates the PR branch as refs/heads/, leaving main as a
remote-tracking ref. Bare clones don't copy refs/remotes/, so the
bare repo had no main, and install.sh's 'git pull origin main'
failed on the re-install step in CI.
Stage in a working clone where we can materialize main from
origin/main (CI case) or fall back to HEAD (local self-test case)
before mirroring into the bare repo.1 parent 527ef10 commit d8ffa2a
1 file changed
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
22 | 28 | | |
23 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
24 | 38 | | |
25 | 39 | | |
26 | 40 | | |
| |||
0 commit comments