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/server/lfs.go → server/lfs.go +4−4
| @@ -13,9 +13,9 @@ import ( | |||
| 13 | 13 | "strconv" | |
| 14 | 14 | "strings" | |
| 15 | 15 | ||
| 16 | "github.com/rodent-software/vole/internal/acl" | ||
| 17 | "github.com/rodent-software/vole/internal/lfs" | ||
| 18 | "github.com/rodent-software/vole/internal/repo" | ||
| 16 | "github.com/rodent-software/vole/core/lfs" | ||
| 17 | "github.com/rodent-software/vole/forge/access" | ||
| 18 | "github.com/rodent-software/vole/forge/repo" | ||
| 19 | 19 | ) | |
| 20 | 20 | ||
| 21 | 21 | const ( | |
| @@ -38,7 +38,7 @@ func (s *Server) lfsRepo(w http.ResponseWriter, r *http.Request) (*repo.Meta, bo | |||
| 38 | 38 | http.Error(w, "repository unavailable", http.StatusInternalServerError) | |
| 39 | 39 | return nil, false | |
| 40 | 40 | } | |
| 41 | if !a.Can("", acl.Read) { | ||
| 41 | if !a.Can("", access.Read) { | ||
| 42 | 42 | http.NotFound(w, r) | |
| 43 | 43 | return nil, false | |
| 44 | 44 | } | |