vole
Site
Clone
Read only, no credentials:
https://rodent.software/vole.git
Write over SSH with a registered key:
git clone ssh://git@rodent.software/vole.git
Self-hosted forge that lives in your Git repo.
Let repo create choose visibility, not an owner
d74e7e231de16fa00366dc8ccc392fc9c637b52d · Keenan Nemetz · 3d ago · parent 3455902a
Let repo create choose visibility, not an owner A repository has no owner: the argument only seeded one admin entry in the ACL store, and instance admins can already administer every repository. The create command therefore asked for a fact the repository does not keep. Replace --owner with --visibility private|public on `vole admin repo create`, the remote admin command, and the web form. The initial rule set is written once, inside the store, so a public repository is never briefly private. An admin who wants to hand a repository to someone grants a role with the acl commands, exactly as for any later access change. closes: 01M82CC7G9W46PRP89GQ5CNMDE
server/hook/hook_test.go +2−2
| @@ -32,7 +32,7 @@ func newFixture(t *testing.T, blob string) *fixture { | |||
| 32 | 32 | // the gate the same file the repository's rules were written to. | |
| 33 | 33 | acls := testACLs(t, root) | |
| 34 | 34 | st := repo.New(filepath.Join(root, "repos"), "/bin/true", acls) | |
| 35 | m, err := st.Create("demo", "owner", "") | ||
| 35 | m, err := st.Create("demo", repo.CreateOptions{Owner: "owner"}) | ||
| 36 | 36 | if err != nil { | |
| 37 | 37 | t.Fatal(err) | |
| 38 | 38 | } | |
| @@ -428,7 +428,7 @@ func pushFixture(t *testing.T) (*repo.Meta, string) { | |||
| 428 | 428 | root := t.TempDir() | |
| 429 | 429 | acls := testACLs(t, root) | |
| 430 | 430 | st := repo.New(filepath.Join(root, "repos"), "/bin/true", acls) | |
| 431 | m, err := st.Create("demo", "owner", "") | ||
| 431 | m, err := st.Create("demo", repo.CreateOptions{Owner: "owner"}) | ||
| 432 | 432 | if err != nil { | |
| 433 | 433 | t.Fatal(err) | |
| 434 | 434 | } | |