git-preview @ main

static git web frontend but with images and html previews + code truncation

routes: skip unopenable dirs
Sun, 18 Dec 2022
1 files changed, 2 insertions(+), 3 deletions(-)
M routes/routes.go

@@ -38,9 +38,8 @@ for _, dir := range dirs {

path := filepath.Join(d.c.Repo.ScanPath, dir.Name()) gr, err := git.Open(path, "") if err != nil { - d.Write500(w) - log.Printf("opening dir %s: %s", path, err) - return + log.Println(err) + continue }

… preview truncated