git-preview @ main

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

unveil: add git executable
Thu, 22 Dec 2022
2 files changed, 7 insertions(+), 3 deletions(-)
M main.go

@@ -23,8 +23,13 @@

if err := UnveilPaths([]string{ c.Dirs.Static, c.Repo.ScanPath, - c.Dirs.Templates}, + c.Dirs.Templates, + }, "r"); err != nil { + log.Fatalf("unveil: %s", err) + } +

… preview truncated

M unveil.go

@@ -20,8 +20,7 @@ }

func UnveilPaths(paths []string, perms string) error { for _, path := range paths { - err := Unveil(path, perms) - if err != nil { + if err := Unveil(path, perms); err != nil { return err } }