mirror of
https://github.com/Dasemu/Grove.git
synced 2026-11-26 07:16:11 +00:00
685 B
685 B
Lessons
- Forgejo push mirrors to localhost are blocked by default; set
ALLOW_LOCALNETWORKSin throwaway test instances. git clone --baresets noremote.origin.fetch; without itfetchnever createsrefs/remotes/*. Usereceive::ensure_fetch_refspec.Git::runtrims stdout, which also eats the leading space of the firststatus --porcelainline (M xbecomesM x). Don't assert on that format viarun.- Fetch other machines' snapshots into
refs/sync-remote/*, never intorefs/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/commonhelper does this.