id: e123476b-9a88-4509-8836-c260047212c9 title: Autogenerated clone-from-server (public-origin) state: closed labels:
- area:render assignees: [] milestone: m6-polish created: 2026-09-10T06:30:20.767120451Z updated: 2026-09-10T06:43:55.271686368Z
Context: Clone URL today = flag or origin remote. Owner wants the server to offer cloning itself, autogenerated. Tasks:
- New
--public-origin URL+HU13_PUBLIC_ORIGIN(flag>env>unset). Serve serves /repo.bundle + /repo.tar.gz as static files (verify already reachable; add explicit test). - Clone block logic: if public-origin set → primary cmd
git clone <origin>/repo.bundle(+ note "exact snapshot of <branch> @ <sha>") and secondary tarball link; origin remote shown as "mirror source" if present. If unset → bundle-first presentation as today + note "served from this server: ask the host for its address". - Entrypoint passes HU13_PUBLIC_ORIGIN. Demo deploy sets it to the tailscale URL.
git clone http://host:port/repo.bundleMUST actually work (git supports bundle-over-http) — supervisor verifies live with real git clone.- Tests: block asserts for both modes; serve test GETs /repo.bundle bytes == file.
Swarm: Owl. Branch
m6/clone-origin.