mirror of
https://github.com/Dasemu/Grove.git
synced 2026-11-26 15:26:09 +00:00
docs: document phase 1 design, decisions and lessons
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
81d8142c57
commit
938604193e
4 files changed
+57
-3
No files matched your search
@@ -1,3 +1,7 @@
|
||||
# Lessons
|
||||
|
||||
- Forgejo push mirrors to localhost are blocked by default; set `ALLOW_LOCALNETWORKS` in throwaway test instances.
|
||||
- `git clone --bare` sets no `remote.origin.fetch`; without it `fetch` never creates `refs/remotes/*`. Use `receive::ensure_fetch_refspec`.
|
||||
- `Git::run` trims stdout, which also eats the leading space of the first `status --porcelain` line (` M x` becomes `M x`). Don't assert on that format via `run`.
|
||||
- Fetch other machines' snapshots into `refs/sync-remote/*`, never into `refs/sync/*`, or a fetch can clobber this machine's own refs.
|
||||
- Run tests that create many temp repos with unique dir names (pid + nanos); the shared `tests/common` helper does this.
|
||||
Reference in new issue
Block a user