vole
Clone
Read only, no credentials:
https://rodent.software/vole.git
Write over SSH with a registered key:
git clone ssh://git@rodent.software:2222/vole.git
A free and open-source forge that lives in your Git repo.
refactor
c5902451905acdaa478f8476844ccd4a510d9ca9 · Keenan Nemetz · 17d ago · parent ec2aba4b
internal/transport/transport_test.go → server/githttp/transport_test.go +6−9
| @@ -1,4 +1,4 @@ | |||
| 1 | package transport | ||
| 1 | package githttp | ||
| 2 | 2 | ||
| 3 | 3 | import ( | |
| 4 | 4 | "io" | |
| @@ -9,10 +9,9 @@ import ( | |||
| 9 | 9 | "strings" | |
| 10 | 10 | "testing" | |
| 11 | 11 | ||
| 12 | "github.com/rodent-software/vole/internal/access" | ||
| 13 | "github.com/rodent-software/vole/internal/acl" | ||
| 14 | "github.com/rodent-software/vole/internal/gitx" | ||
| 15 | "github.com/rodent-software/vole/internal/repo" | ||
| 12 | "github.com/rodent-software/vole/core/git" | ||
| 13 | "github.com/rodent-software/vole/forge/access" | ||
| 14 | "github.com/rodent-software/vole/forge/repo" | ||
| 16 | 15 | ) | |
| 17 | 16 | ||
| 18 | 17 | func TestRoute(t *testing.T) { | |
| @@ -58,12 +57,12 @@ func makeRepo(t *testing.T, root string, public bool, acls *access.Store) string | |||
| 58 | 57 | if err != nil { | |
| 59 | 58 | t.Fatal(err) | |
| 60 | 59 | } | |
| 61 | g := gitx.Open(m.Dir) | ||
| 60 | g := git.Open(m.Dir) | ||
| 62 | 61 | blob, err := g.HashObject([]byte("hello\n")) | |
| 63 | 62 | if err != nil { | |
| 64 | 63 | t.Fatal(err) | |
| 65 | 64 | } | |
| 66 | tree, err := g.MkTree([]gitx.Entry{{Mode: "100644", Type: "blob", SHA: blob, Name: "readme.md"}}) | ||
| 65 | tree, err := g.MkTree([]git.Entry{{Mode: "100644", Type: "blob", SHA: blob, Name: "readme.md"}}) | ||
| 67 | 66 | if err != nil { | |
| 68 | 67 | t.Fatal(err) | |
| 69 | 68 | } | |
| @@ -178,5 +177,3 @@ func TestDumbHTTPRefused(t *testing.T) { | |||
| 178 | 177 | } | |
| 179 | 178 | } | |
| 180 | 179 | } | |
| 181 | |||
| 182 | var _ = acl.Read | ||