Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Clone

Read only, no credentials:

https://rodent.software/git/vole.git

Write over SSH with a registered key:

git clone ssh://git@0.0.0.0:2222/vole.git

A free and open-source forge that lives in your Git repo.

Create the instance repository on init and list it normally

3e7c5e6797105f87fe593bb4c34743d3615ab598 · Keenan Nemetz · 1d ago · parent 6ce635a8

Create the instance repository on init and list it normally

`vole admin init` now creates the configured instance repository with the starter tree and indexes it, so a new instance starts with it. The repository is no longer hidden from the home page or activity feed: it has the same pages, history, and settings as any other, and its visibility is its own.

The Admin page's create button remains as the repair path for an instance that predates this, using the same starter tree from the instancerepo package.

forge/instance_test.go +14

@@ -29,6 +29,20 @@ func TestInitOpenAndRepoLifecycle(t *testing.T) {
29 29 }
30 30 defer inst.Close()
31 31
32 // init creates the instance repository with the starter files, and indexes it
33 // so the home page lists it like any other repository.
34 theme, err := inst.Repos.Open(cfg.InstanceRepo)
35 if err != nil {
36 t.Fatalf("init did not create the instance repository: %v", err)
37 }
38 if _, err := inst.Index.Get(cfg.InstanceRepo); err != nil {
39 t.Fatalf("the instance repository is not indexed: %v", err)
40 }
41 readme, err := theme.Git().BlobAt("refs/heads/"+theme.DefaultBranch, "README.md")
42 if err != nil || !strings.Contains(string(readme), "Instance customization") {
43 t.Fatalf("instance README = %q, %v", readme, err)
44 }
45
32 46 pub, _, err := ed25519.GenerateKey(rand.Reader)
33 47 if err != nil {
34 48 t.Fatal(err)