Files
Grove/docs/phase0-spike.md
T
2026-11-16 11:33:22 +01:00

24 lines
1.3 KiB
Markdown

# Phase 0 spike: custom refs on Gitea/Forgejo
Scripts: `spikes/forgejo-up.sh` (throwaway Forgejo 11 via Podman), `spikes/snapshot.sh`
(plumbing-only snapshot), `spikes/phase0.sh` (end-to-end checks).
## Results (Forgejo 11, local, 2026-11-16)
| Question | Result |
|---|---|
| Push `refs/sync/<machine>/<branch>` (force) | Accepted |
| Appears as a branch (API `/branches`) | No, only `main` |
| Visible via API `/git/refs` | Yes (so not fully hidden; UI not checked visually) |
| Fetchable from another clone (`+refs/sync/*:refs/sync/*`) | Yes; tree contains tracked, staged and untracked files, excludes ignored |
| Snapshot leaves branch, index and history untouched | Yes (temp `GIT_INDEX_FILE`) |
| Included by push mirror | No, mirror received only `refs/heads/main` (+HEAD) |
Conclusion: **no fallback needed** for Forgejo. Section 7.1 design holds.
## Caveats / pending
- Verified on Forgejo 11 only. The real instance at git.zenvairo.es (Gitea or Forgejo, version unknown) still has to be checked; needs a throwaway repo there (external effect, awaiting approval).
- UI visibility not verified visually.
- Push mirrors to a local target need `migrations.ALLOW_LOCALNETWORKS`; irrelevant for real targets.
- GitHub as a direct target of `refs/sync/*` is not tested (design never pushes them there).