git-preview @ main

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

config: Ensure we always have an absolute path

Having this consistent across the code is handy when we're building
paths, counting separators and other path manipulation.
Tue, 03 Jan 2023
1 files changed, 11 insertions(+), 0 deletions(-)
M config/config.go

@@ -3,6 +3,7 @@

import ( "fmt" "os" + "path/filepath" "gopkg.in/yaml.v3" )

@@ -38,6 +39,16 @@

c := Config{} if err := yaml.Unmarshal(b, &c); err != nil { return nil, fmt.Errorf("parsing config: %w", err)

… preview truncated