@@ -2,13 +2,13 @@
22 id: 1015
33 title: Remotes show github, should show correctly, from the site's repos remotes.
44 type: bug
5-status: blocked
5+status: review
66 priority: p2
77 created: 2026-11-08T03:48:13Z
8-updated: 2026-11-08T04:04:19Z
8+updated: 2026-11-08T04:09:42Z
99 source: devnote
1010 area: site
11-moves: 2026-11-08T04:02:21Z inbox doing drag; 2026-11-08T04:04:19Z doing blocked agent
11+moves: 2026-11-08T04:02:21Z inbox doing drag; 2026-11-08T04:04:19Z doing blocked agent; 2026-11-08T04:07:25Z blocked doing agent; 2026-11-08T04:09:42Z doing review agent
1212 ---
1313
1414 ## Context
@@ -33,3 +33,13 @@ Filed from `http://192.168.122.10:8080/projects/dotfiles/`, on `pre.bg-pre.text-
3333 (c) Keep the upstream URL until hosting is decided.
3434
3535 I recommend (b): it is the only one where the URL on the page is real. Also tell me the URL shape you want, e.g. https://xonecas.io/<name>.git or https://xonecas.io/projects/<name>.git.
36+
37+- 2026-11-08 04:09Z (agent): Done, with option (b) as recommended, since you asked me to decide. Clone now shows 'git clone https://xonecas.io/<name>.git', and that URL works from any static server.
38+
39+ - internal/site/clone.go (new): writeClone puts a bare copy of each shown project's repo at public/<name>.git ('git clone --bare' from the store, then 'git update-server-info'), so git's dumb HTTP protocol can clone it with no git server.
40+ - build.go calls it per project; project.html prints the site URL; the Sources list still links the upstreams.
41+ - clone_test.go: builds a repo, serves it with a plain http.FileServer, and runs a real 'git clone' against it.
42+
43+ CHECKED: go vet, go test pass. Full build: 82 public/<name>.git. From the dev server: 'git clone http://192.168.122.10:8080/irvc.git' and dotfiles.git both clone (dotfiles: 99 commits). The local clone hard-links objects (pack link count 2), and disk use did not change. A rebuild with no changes takes 5.4s.
44+
45+ NOT CHECKED / WATCH OUT: (1) Off this disk, e.g. rsync to the VPS, public/ carries the full repos, about 351 MB today. (2) A project that becomes hidden keeps its old public/<name>.git until public/ is wiped. The build does not prune; I did not check whether old HTML pages behave the same. (3) Nothing serves xonecas.io yet (1011), so the printed URL works only once public/ is hosted there.