xonecas.io
8356
Wx

www-xonecas-io / commit e74f478

push to <user>@xonecas.io:<name>.git from any machine; the first push creates the repo (1042)

Co-Authored-By: Claude Opus 5.5

Sean Caetano Martin2026-11-08 e74f478b870ec93a776f40af69834e3a1cce5752 parent 83fb796

19 files changed

README.md+20−3
@@ -4,7 +4,7 @@ My projects and their git history, as a static site. It reads git repos and rend
44 server can host, including the `<name>.git` folders you `git clone` from.
55
66 ```
7- bin/site remote new ─► git push ─► repos/xonecas.io/<name>.git ──┐
7+ git push over SSH ─► site shell ─► repos/xonecas.io/<name>.git ──┐
88 ├─► site index ─► site build ─► public/
99 sources.txt ─► site import ─► repos/<host>/<owner>/<repo>.git ───┤
1010 overrides.txt ──┘
@@ -21,11 +21,28 @@ make serve # builds public/ and serves it on http://vm:8080
2121
2222 Run everything from this folder. `bin/site help` lists the commands, and `bin/site <command> -h` lists a command's flags.
2323
24+## Push a repo from anywhere
25+
26+Pushing over SSH creates the repo on its first push, the way `gh repo create` would, and each push rebuilds the site:
27+
28+```sh
29+git remote add origin <user>@xonecas.io:my-thing.git
30+git push -u origin main
31+ssh <user>@xonecas.io remote list # remote new|add|rm work the same way
32+```
33+
34+To set it up, add one line per key to `~/.ssh/authorized_keys` of the user that runs the site on the server.
35+The key then runs only `bin/site shell`, which allows `git push`, `git clone`/`fetch` of hosted repos and `remote`, and never a shell:
36+
37+```
38+command="cd /path/to/site && bin/site shell",restrict ssh-ed25519 AAAA... you@laptop
39+```
40+
2441 ## Manage repos
2542
2643 | To | Run |
2744 | --- | --- |
28-| Start a repo the site hosts | `bin/site remote new my-thing`, then the `git remote add` line it prints, then `git push -u origin main` |
45+| Start a repo the site hosts | `git push` to `<user>@xonecas.io:my-thing.git`, or `remote new my-thing` first, which prints that URL |
2946 | Show a repo you already have | `bin/site remote add ~/code/other-thing` (a path) or `bin/site remote add https://host/owner/repo.git` |
3047 | Stop showing a repo | `bin/site remote rm <path or url>` (a hosted repo's data is kept) |
3148 | List the repos | `bin/site remote list` |
@@ -53,7 +70,7 @@ tag <name> +frontend -backend add or drop tags
5370
5471 | Path | Holds |
5572 | --- | --- |
56-| `cmd/site` | the `site` command: import, remote, index, build, serve, help |
73+| `cmd/site` | the `site` command: import, remote, shell, index, build, serve, help |
5774 | `internal/store` | the repo store: `sources.txt`, mirrors, hosted repos, the hosts' metadata |
5875 | `internal/project` | groups repos into projects, and their tags, description and overrides |
5976 | `internal/site` | renders every page into `public/` |
cmd/site/help.go+9−6
@@ -11,7 +11,7 @@ const usage = `site builds xonecas.io from git repos. Run it in the site folder;
1111
1212 Repos
1313 site remote list list the repos the site shows
14- site remote new <name> make a repo here that you git push to over SSH
14+ site remote new <name> make a repo to git push to over SSH (a first push makes one too)
1515 site remote add <path or url> show a repo you already have: a local path or any https URL
1616 site remote rm <path or url> stop showing a repo (a pushed repo's data is kept)
1717
@@ -20,14 +20,17 @@ Site
2020 site index read the repos into data/projects.json
2121 site build render public/
2222 site serve serve public/ on :8080
23+ site shell what sshd runs for your key: git push, git clone and remote
2324
2425 site <command> -h a command's flags
2526
26-Start a repo and push to it
27- bin/site remote new my-thing prints the git remote add line for this machine
28- cd ~/code/my-thing on any machine that can ssh here
29- git remote add origin sacenox@vm:/home/sacenox/repos/www-xonecas-io/repos/xonecas.io/my-thing.git
30- git push -u origin main each push rebuilds public/; the log is in my-thing.git/build.log
27+Push a new repo, from any machine
28+ git remote add origin <user>@xonecas.io:my-thing.git
29+ git push -u origin main the first push creates the repo; each push rebuilds public/
30+ ssh <user>@xonecas.io remote list the same remote commands, over SSH
31+
32+ One line in the server user's ~/.ssh/authorized_keys sets it up, per key:
33+ command="cd /path/to/site && bin/site shell",restrict ssh-ed25519 AAAA...
3134
3235 Show a repo you already have
3336 bin/site remote add ~/code/other-thing
cmd/site/main.go+9−0
@@ -2,6 +2,7 @@
22 //
33 // site import [-sources sources.txt] [-store repos] [-jobs 8] [-meta data/meta.json]
44 // site remote [-sources sources.txt] [-store repos] [-meta data/meta.json] list | new <name> | add <url or path> | rm <url or path>
5+// site shell [-sources sources.txt] [-store repos] [-meta data/meta.json], run by sshd with $SSH_ORIGINAL_COMMAND
56 // site index [-sources sources.txt] [-store repos] [-overrides overrides.txt] [-meta data/meta.json] [-out data/projects.json]
67 // site build [-data data/projects.json] [-out public] [-tailwind bin/tailwindcss]
78 // site serve [-dir public] [-addr :8080]
@@ -53,6 +54,14 @@ func main() {
5354 if err := remote(fs.Args(), *sources, *root, *meta); err != nil {
5455 log.Fatal(err)
5556 }
57+ case "shell":
58+ sources := fs.String("sources", "sources.txt", "clone URLs, one per line")
59+ root := fs.String("store", "repos", "folder for the bare mirrors")
60+ meta := fs.String("meta", "data/meta.json", "where to save the hosts' metadata")
61+ fs.Parse(os.Args[2:])
62+ if err := shell(os.Getenv("SSH_ORIGINAL_COMMAND"), *sources, *root, *meta); err != nil {
63+ log.Fatal(err)
64+ }
5665 case "index":
5766 sources := fs.String("sources", "sources.txt", "clone URLs, one per line")
5867 root := fs.String("store", "repos", "folder of the bare mirrors")
cmd/site/remote.go+11−5
@@ -32,7 +32,12 @@ func remote(args []string, sources, root, meta string) error {
3232 return errors.New("usage: site remote list | new <name> | add <path or url> | rm <path or url>; site help shows more")
3333 }
3434 if args[0] == "new" {
35- return newRepo(args[1], urls, sources, root, meta)
35+ if err := newRepo(args[1], urls, sources, root, meta); err != nil {
36+ return err
37+ }
38+ host := strings.TrimPrefix(site.BaseURL, "https://")
39+ fmt.Printf("git remote add origin %s@%s:%s.git\ngit push -u origin main\n", os.Getenv("USER"), host, args[1])
40+ return nil
3641 }
3742 url, err := store.Clean(args[1])
3843 if err != nil {
@@ -60,7 +65,10 @@ func remote(args []string, sources, root, meta string) error {
6065 return nil
6166 }
6267
63-// newRepo creates the hosted repo name in the store, lists it, and prints where to push.
68+// hostedURL is the sources line, and public clone URL, of the repo the site hosts as name.
69+func hostedURL(name string) string { return site.BaseURL + "/" + name + ".git" }
70+
71+// newRepo creates the hosted repo name in the store and lists it.
6472 // Its hook rebuilds the site in the background, one build at a time, so a push returns at once.
6573 func newRepo(name string, urls []string, sources, root, meta string) error {
6674 if !regexp.MustCompile(`^[a-z0-9][a-z0-9._-]*$`).MatchString(name) || strings.HasSuffix(name, ".git") {
@@ -71,7 +79,7 @@ func newRepo(name string, urls []string, sources, root, meta string) error {
7179 return fmt.Errorf("%s already names a project", u)
7280 }
7381 }
74- url := site.BaseURL + "/" + name + ".git"
82+ url := hostedURL(name)
7583 dir, err := filepath.Abs(store.Dir(root, url))
7684 if err != nil {
7785 return err
@@ -90,8 +98,6 @@ func newRepo(name string, urls []string, sources, root, meta string) error {
9098 if err := store.AddSource(sources, url); err != nil {
9199 return errors.Join(err, os.RemoveAll(dir))
92100 }
93- host, _ := os.Hostname()
94- fmt.Printf("git remote add origin %s@%s:%s\ngit push -u origin main\n", os.Getenv("USER"), host, dir)
95101 return nil
96102 }
97103
cmd/site/shell.go+50−0
@@ -0,0 +1,50 @@
1+package main
2+
3+import (
4+ "errors"
5+ "fmt"
6+ "log"
7+ "os"
8+ "os/exec"
9+ "slices"
10+ "strings"
11+ "syscall"
12+
13+ "xonecas.io/site/internal/store"
14+)
15+
16+// shell runs one SSH command for the site, from an authorized_keys line like
17+//
18+// command="cd /path/to/site && bin/site shell",restrict ssh-ed25519 AAAA...
19+//
20+// git push to <name>.git creates the repo on its first push, git clone and fetch read it,
21+// and remote manages the repos, as site remote does. Nothing else runs, so the key gets no shell.
22+func shell(cmd, sources, root, meta string) error {
23+ args := strings.Fields(cmd)
24+ if len(args) == 2 && (args[0] == "git-receive-pack" || args[0] == "git-upload-pack") {
25+ name := strings.TrimSuffix(strings.TrimLeft(strings.Trim(args[1], "'"), "/~"), ".git")
26+ url := hostedURL(name)
27+ urls, err := store.Sources(sources)
28+ if err != nil {
29+ return err
30+ }
31+ if !slices.Contains(urls, url) {
32+ if args[0] == "git-upload-pack" {
33+ return fmt.Errorf("there is no repo %s.git", name)
34+ }
35+ if err := newRepo(name, urls, sources, root, meta); err != nil {
36+ return err
37+ }
38+ log.Printf("created %s; each push rebuilds the site", url)
39+ }
40+ git, err := exec.LookPath("git")
41+ if err != nil {
42+ return err
43+ }
44+ return syscall.Exec(git, []string{"git", strings.TrimPrefix(args[0], "git-"), store.Dir(root, url)}, os.Environ())
45+ }
46+ if len(args) > 0 && args[0] == "remote" {
47+ return remote(args[1:], sources, root, meta)
48+ }
49+ return errors.New("usage: git push <user>@<host>:<name>.git, git clone it, or ssh <user>@<host> remote list | new <name> | add <path or url> | rm <path or url>")
50+}
internal/store/hosted.go+4−1
@@ -11,10 +11,13 @@ func Hosted(dir string) bool {
1111 return err != nil
1212 }
1313
14+// headHook points HEAD at the first branch pushed while HEAD's branch (main) has no commits.
15+const headHook = `git rev-parse -q --verify HEAD >/dev/null || { read -r _ _ ref; case $ref in refs/heads/*) git symbolic-ref HEAD "$ref";; esac; }`
16+
1417 // Create makes a bare repo at dir to push to, on branch main, whose post-receive hook runs the shell line hook.
1518 func Create(dir, hook string) error {
1619 if _, err := git("init", "--bare", "--quiet", "--initial-branch=main", dir); err != nil {
1720 return err
1821 }
19- return os.WriteFile(filepath.Join(dir, "hooks", "post-receive"), []byte("#!/bin/sh\n"+hook+"\n"), 0o755)
22+ return os.WriteFile(filepath.Join(dir, "hooks", "post-receive"), []byte("#!/bin/sh\n"+headHook+"\n"+hook+"\n"), 0o755)
2023 }
internal/store/store_test.go+13−0
@@ -88,4 +88,17 @@ func TestHosted(t *testing.T) {
8888 if state, err := Sync(root, url); state != "hosted" || err != nil {
8989 t.Errorf("Sync of a hosted repo = %q, %v", state, err)
9090 }
91+ work := t.TempDir()
92+ for _, args := range [][]string{
93+ {"init", "--quiet", "--initial-branch=master", work},
94+ {"-C", work, "-c", "user.name=t", "-c", "user.email=t@t", "commit", "--quiet", "--allow-empty", "-m", "one"},
95+ {"-C", work, "push", "--quiet", Dir(root, url), "master"},
96+ } {
97+ if _, err := git(args...); err != nil {
98+ t.Fatal(err)
99+ }
100+ }
101+ if head, err := git("--git-dir", Dir(root, url), "symbolic-ref", "HEAD"); head != "refs/heads/master" {
102+ t.Errorf("HEAD after pushing only master = %q, %v", head, err)
103+ }
91104 }
tickets/1034-remove-the-languages-entry.md+3−3
@@ -2,12 +2,12 @@
22 id: 1034
33 title: remove the "languages" entry
44 type: chore
5-status: review
5+status: done
66 priority: p2
77 created: 2026-11-08T05:07:33Z
8-updated: 2026-11-08T05:09:24Z
8+updated: 2026-11-08T16:01:22Z
99 source: devnote
10-moves: 2026-11-08T05:07:37Z inbox doing drag; 2026-11-08T05:09:19Z doing review agent
10+moves: 2026-11-08T05:07:37Z inbox doing drag; 2026-11-08T05:09:19Z doing review agent; 2026-11-08T16:01:22Z review done drag
1111 area: site
1212 ---
1313
tickets/1035-let-s-add-a-tooltip-that.md+3−3
@@ -2,12 +2,12 @@
22 id: 1035
33 title: "Let's add a tooltip that:"
44 type: feature
5-status: review
5+status: done
66 priority: p2
77 created: 2026-11-08T05:11:47Z
8-updated: 2026-11-08T05:18:13Z
8+updated: 2026-11-08T16:01:21Z
99 source: devnote
10-moves: 2026-11-08T05:11:51Z inbox doing drag; 2026-11-08T05:18:13Z doing review agent
10+moves: 2026-11-08T05:11:51Z inbox doing drag; 2026-11-08T05:18:13Z doing review agent; 2026-11-08T16:01:21Z review done drag
1111 area: site
1212 ---
1313
tickets/1036-seo-agent-accessibility.md+3−3
@@ -2,12 +2,12 @@
22 id: 1036
33 title: SEO/Agent accessibility
44 type: feature
5-status: review
5+status: todo
66 priority: p2
77 created: 2026-11-08T05:16:54Z
8-updated: 2026-11-08T05:40:30Z
8+updated: 2026-11-08T16:01:19Z
99 source: human
10-moves: 2026-11-08T05:19:58Z inbox todo drag; 2026-11-08T05:21:38Z todo doing drag; 2026-11-08T05:40:30Z doing review agent
10+moves: 2026-11-08T05:19:58Z inbox todo drag; 2026-11-08T05:21:38Z todo doing drag; 2026-11-08T05:40:30Z doing review agent; 2026-11-08T16:01:19Z review todo drag
1111 area: site
1212 ---
1313
tickets/1037-needs-a-autoselect-dropdown.md+3−3
@@ -2,12 +2,12 @@
22 id: 1037
33 title: needs a autoselect dropdown
44 type: feature
5-status: review
5+status: done
66 priority: p2
77 created: 2026-11-08T05:20:43Z
8-updated: 2026-11-08T05:31:10Z
8+updated: 2026-11-08T16:01:13Z
99 source: devnote
10-moves: 2026-11-08T05:21:37Z inbox doing drag; 2026-11-08T05:31:10Z doing review agent
10+moves: 2026-11-08T05:21:37Z inbox doing drag; 2026-11-08T05:31:10Z doing review agent; 2026-11-08T16:01:13Z review done drag
1111 area: site
1212 ---
1313
tickets/1038-let-s-make-tag-pool-more-alive-and-animated.md+3−3
@@ -2,12 +2,12 @@
22 id: 1038
33 title: let's make tag pool more alive and animated with hover states.
44 type: feature
5-status: review
5+status: done
66 priority: p2
77 created: 2026-11-08T05:21:27Z
8-updated: 2026-11-08T05:28:22Z
8+updated: 2026-11-08T16:01:12Z
99 source: devnote
10-moves: 2026-11-08T05:21:35Z inbox doing drag; 2026-11-08T05:28:22Z doing review agent
10+moves: 2026-11-08T05:21:35Z inbox doing drag; 2026-11-08T05:28:22Z doing review agent; 2026-11-08T16:01:12Z review done drag
1111 area: site
1212 ---
1313
tickets/1039-dark-mode-needs-a-look-at-the-colors.md+3−3
@@ -2,12 +2,12 @@
22 id: 1039
33 title: Dark mode needs a look at the colors
44 type: bug
5-status: review
5+status: done
66 priority: p2
77 created: 2026-11-08T05:33:05Z
8-updated: 2026-11-08T05:45:09Z
8+updated: 2026-11-08T16:01:10Z
99 source: human
10-moves: 2026-11-08T05:33:40Z inbox doing drag; 2026-11-08T05:33:43Z doing todo drag; 2026-11-08T05:40:33Z todo doing drag; 2026-11-08T05:45:09Z doing review agent
10+moves: 2026-11-08T05:33:40Z inbox doing drag; 2026-11-08T05:33:43Z doing todo drag; 2026-11-08T05:40:33Z todo doing drag; 2026-11-08T05:45:09Z doing review agent; 2026-11-08T16:01:10Z review done drag
1111 area: site
1212 ---
1313
tickets/1040-create-a-repo-and-commit-our-progress-no-remotes.md+3−3
@@ -2,12 +2,12 @@
22 id: 1040
33 title: create a repo and commit our progress. no remotes
44 type: chore
5-status: review
5+status: done
66 priority: p2
77 created: 2026-11-08T05:59:08Z
8-updated: 2026-11-08T05:59:31Z
8+updated: 2026-11-08T16:01:09Z
99 source: human
10-moves: 2026-11-08T05:59:12Z inbox doing drag; 2026-11-08T05:59:31Z doing review agent
10+moves: 2026-11-08T05:59:12Z inbox doing drag; 2026-11-08T05:59:31Z doing review agent; 2026-11-08T16:01:09Z review done drag
1111 area: repo
1212 ---
1313
tickets/1042-how-do-we-add-new-remotes.md+60−2
@@ -5,9 +5,9 @@ type: feature
55 status: review
66 priority: p2
77 created: 2026-11-08T06:26:18Z
8-updated: 2026-11-08T15:09:16Z
8+updated: 2026-11-08T16:12:02Z
99 source: human
10-moves: 2026-11-08T06:26:22Z inbox doing drag; 2026-11-08T06:27:05Z doing review agent; 2026-11-08T06:57:08Z review doing drag; 2026-11-08T07:00:33Z doing review agent; 2026-11-08T07:01:42Z review todo note; 2026-11-08T07:01:44Z todo doing drag; 2026-11-08T07:04:04Z doing review agent; 2026-11-08T15:04:59Z review todo note; 2026-11-08T15:05:05Z todo doing drag; 2026-11-08T15:09:16Z doing review agent
10+moves: 2026-11-08T06:26:22Z inbox doing drag; 2026-11-08T06:27:05Z doing review agent; 2026-11-08T06:57:08Z review doing drag; 2026-11-08T07:00:33Z doing review agent; 2026-11-08T07:01:42Z review todo note; 2026-11-08T07:01:44Z todo doing drag; 2026-11-08T07:04:04Z doing review agent; 2026-11-08T15:04:59Z review todo note; 2026-11-08T15:05:05Z todo doing drag; 2026-11-08T15:09:16Z doing review agent; 2026-11-08T16:00:26Z review todo note; 2026-11-08T16:00:48Z todo doing drag; 2026-11-08T16:01:36 …
1111 area: import
1212 ---
1313
@@ -81,3 +81,61 @@ Can we make this more formal, like a cli with the server bin? We could build on
8181 bin/site <command> -h adds that command's flags. Code: cmd/site/help.go, called from main.go.
8282 Checked from scratch in a temp site folder: remote new, two pushes, the hook rebuilt public/, the home page lists my-thing, /projects/my-thing/ returns 200, and git clone over HTTP from the served site gives both commits. go vet and go test pass. Temp files removed.
8383 Not checked: a push over real SSH from your host (I can't add a key here). Still true: this VM is recreated, so a repo made with remote new here is lost on reset.
84+
85+- 2026-11-08 16:00Z (human): This was what I suspected. I have to ssh to the site's host to create a new repo. Again you implemented something that no one would ever use. again.
86+
87+ You have used github right? github cli?
88+
89+ Thats what this ticket asks for, so I can create a repo remotely get a git remote url and push it.
90+
91+ The way you made this is no better than ssh'ing to the server and copying the files by hand.
92+
93+- 2026-11-08 16:01Z (agent): Blocked: before I build anything, two answers from you. Last round I guessed and got it wrong.
94+
95+ What you asked for, as I read it now: from your own machine, with no ssh to the server first, create a repo, get its remote URL, and push. Then later manage pins and public/private the same way.
96+
97+ Option A, recommended: SSH push-to-create, the way gitolite and soft-serve work.
98+ git remote add origin git@xonecas.io:my-thing.git
99+ git push -u origin main the first push creates the repo, and each push rebuilds the site
100+ ssh git@xonecas.io repo list manage from anywhere, later: repo rm, pin, private
101+ - Your machines need nothing installed. Your SSH key is the login.
102+ - On the server: sshd, plus one authorized_keys line for the git user: command="site shell" <your key>. site shell only allows git-receive-pack, git-upload-pack and the repo commands, so the key can't get a shell.
103+ - Small: one new file, cmd/site/shell.go. It reuses remote new and the post-receive hook.
104+
105+ Option B: a gh-style client. You run site repo create my-thing on your machine. It calls an HTTP API on the server with a token, and you push over HTTPS.
106+ - Needs a daemon running on the server, TLS, token storage, and the binary on every machine you use. Several times the code of A.
107+
108+ Question 1: A or B?
109+ Question 2: where does xonecas.io run? I found no deploy config in the repo. A needs a machine with sshd that serves public/ or uploads it. If the site sits on static-only hosting (Pages, Netlify, a bucket), tell me which one and I'll fit the build/upload step to it.
110+
111+ Nothing changed in this round.
112+
113+- 2026-11-08 16:04Z (human): Option A should have been the first and only option.
114+
115+ You don't get to access the live site, stop trying to access it, change it, you can't even do your tickets, stay away from prod. I'm tired of saying this over and over. You're not a deploy engineer, youre making a github replacement for a single user on their own servers. I know how to deploy my site.
116+
117+- 2026-11-08 16:12Z (agent): Done, Option A: push from any machine and the repo is created. Nothing to install on your machines, no ssh to the server first.
118+
119+ git remote add origin <user>@xonecas.io:my-thing.git
120+ git push -u origin main first push creates it; each push rebuilds the site
121+ git clone <user>@xonecas.io:my-thing.git
122+ ssh <user>@xonecas.io remote list remote new|add|rm work the same; pins and public/private can join here later
123+
124+ Setup, once per key, in authorized_keys of the user that runs the site:
125+ command="cd /path/to/site && bin/site shell",restrict ssh-ed25519 AAAA...
126+ That key can then run only git push, git clone/fetch of hosted repos, and remote. It never gets a shell.
127+
128+ Code:
129+ - cmd/site/shell.go (new): reads SSH_ORIGINAL_COMMAND. git-receive-pack for an unknown name creates the repo (same checks as remote new), then execs git. git-upload-pack only reads repos the site hosts. Anything else is refused with a usage line.
130+ - remote new now prints <user>@xonecas.io:<name>.git instead of the long store path.
131+ - store.Create: the hook points HEAD at the first branch you push, so pushing master (or any branch) works. Without it, a master-only push made site index fail for every later push.
132+ - help and README: a 'Push a repo from anywhere' section with the authorized_keys line.
133+
134+ Checked, over real SSH: a throwaway sshd on 127.0.0.1:2222 with its own authorized_keys in a scratch folder, and a scratch copy of the site. Your ~/.ssh and real repos/ were not touched, and the scratch folder and sshd are gone now.
135+ - push-to-create, a second push, a push over an ssh:// URL, clone over SSH, remote new and remote list over SSH.
136+ - a repo pushed on master and one on main are both on the rebuilt home page, each with its own page. Both clone over HTTP from public/.
137+ - refused: plain ssh, ssh bash, cloning a missing repo, pushing to ../etc.git or to an absolute path.
138+ - go vet; go test, including TestHosted pushing only master.
139+ Not checked: anything on your servers; deploying is yours.
140+
141+ Filed 1046: site build panics when no project is shown. I hit it in the scratch site, and your site doesn't hit it today.
tickets/1043-published-clones-expose-the-build-machine-s.md+3−3
@@ -2,13 +2,13 @@
22 id: 1043
33 title: Published clones expose the build machine's mirror path in <name>.git/config
44 type: bug
5-status: review
5+status: done
66 priority: p2
77 area: site
88 created: 2026-11-08T07:04:04Z
9-updated: 2026-11-08T14:43:58Z
9+updated: 2026-11-08T16:01:05Z
1010 source: agent
11-moves: 2026-11-08T14:41:37Z inbox doing drag; 2026-11-08T14:43:58Z doing review agent
11+moves: 2026-11-08T14:41:37Z inbox doing drag; 2026-11-08T14:43:58Z doing review agent; 2026-11-08T16:01:05Z review done drag
1212 ---
1313
1414 Seen while testing 1042: writeClone (internal/site/clone.go) runs git clone --bare from the mirror, so every public/<name>.git/config keeps [remote "origin"] url = <absolute path of the mirror under repos/>, e.g. /home/sacenox/repos/www-xonecas-io/repos/github.com/... Anyone can fetch https://xonecas.io/<name>.git/config and read it. Seen in a scratch build. I did not check the live site or the other files in the clone (packed-refs, FETCH_HEAD).
tickets/1044-no-readme.md+3−3
@@ -2,13 +2,13 @@
22 id: 1044
33 title: No README
44 type: chore
5-status: review
5+status: todo
66 priority: p2
77 created: 2026-11-08T15:45:06Z
8-updated: 2026-11-08T15:46:39Z
8+updated: 2026-11-08T16:01:02Z
99 source: human
1010 area: docs
11-moves: 2026-11-08T15:45:24Z inbox doing drag; 2026-11-08T15:46:39Z doing review agent
11+moves: 2026-11-08T15:45:24Z inbox doing drag; 2026-11-08T15:46:39Z doing review agent; 2026-11-08T16:01:02Z review todo drag
1212 ---
1313
1414
tickets/1045-no-way-to-learn-how-to-manage-my-repos.md+3−3
@@ -2,12 +2,12 @@
22 id: 1045
33 title: No way to learn how to manage my repos
44 type: bug
5-status: review
5+status: todo
66 priority: p2
77 created: 2026-11-08T15:45:14Z
8-updated: 2026-11-08T15:46:39Z
8+updated: 2026-11-08T16:06:27Z
99 source: human
10-moves: 2026-11-08T15:45:23Z inbox doing drag; 2026-11-08T15:46:39Z doing review agent
10+moves: 2026-11-08T15:45:23Z inbox doing drag; 2026-11-08T15:46:39Z doing review agent; 2026-11-08T16:00:52Z review todo drag; 2026-11-08T16:06:23Z todo doing drag; 2026-11-08T16:06:27Z doing todo drag
1111 area: docs
1212 ---
1313
tickets/1046-site-build-panics-when-no-project-is-shown.md+13−0
@@ -0,0 +1,13 @@
1+---
2+id: 1046
3+title: site build panics when no project is shown
4+type: bug
5+status: inbox
6+priority: p2
7+area: site
8+created: 2026-11-08T16:11:51Z
9+updated: 2026-11-08T16:11:51Z
10+source: agent
11+---
12+
13+site build crashes with 'panic: runtime error: index out of range [0] with length 0' at internal/site/rows.go:19 (Rows reads projects[0]) when data/projects.json has no shown project. Seen on 1042: a scratch site whose only repos were hidden as empty. The post-receive hook's build then fails and build.log holds the panic. Not checked: whether any other page builder assumes at least one project. Your real site always has shown projects, so it does not hit this today.