all repos — elgit @ f41c7baefd86bf8db0e5f096c449997d9427f813

fork of legit: web frontend for git, written in go

configure golangci-lint

Alan Pearce
commit

f41c7baefd86bf8db0e5f096c449997d9427f813

parent

721a55a5b5ab180d4828e8de8175b24ca8d244f3

1 file changed, 4 insertions(+), 2 deletions(-)

changed files
M routes/util.goroutes/util.go
@@ -9,14 +9,15 @@ "path/filepath"
"slices" "strings" + "alin.ovh/elgit/data" + "alin.ovh/elgit/git" securejoin "github.com/cyphar/filepath-securejoin" "github.com/dimfeld/httptreemux/v5" - "alin.ovh/elgit/data" - "alin.ovh/elgit/git" ) func isGoModule(gr *git.GitRepo) bool { _, err := gr.FileContent("go.mod") + return err == nil }
@@ -31,6 +32,7 @@ desc = string(db)
} else { desc = "" } + return }