all repos — elgit @ 7bea4a8f49a9f3aa9386b7e7d24a2a78beb2f7e9

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

embed static files

Alan Pearce
commit

7bea4a8f49a9f3aa9386b7e7d24a2a78beb2f7e9

parent

5ff42d78653ea018f8855de4768cf872ce41e41e

1 file changed, 0 insertions(+), 10 deletions(-)

changed files
M config/config.goconfig/config.go
@@ -3,7 +3,6 @@
import ( "fmt" "os" - "path/filepath" "gopkg.in/yaml.v3" )
@@ -13,10 +12,6 @@ Root string `yaml:"root"`
Readme []string `yaml:"readme"` MainBranch []string `yaml:"mainBranch"` Unlisted []string `yaml:"unlisted,omitempty"` -} - -type Dirs struct { - Static string `yaml:"static"` } type Meta struct {
@@ -33,7 +28,6 @@ }
type Config struct { Repo Repo `yaml:"repo"` - Dirs Dirs `yaml:"dirs"` Meta Meta `yaml:"meta"` Server Server `yaml:"server"` }
@@ -47,10 +41,6 @@
c := Config{} if err := yaml.Unmarshal(b, &c); err != nil { return nil, fmt.Errorf("parsing config: %w", err) - } - - if c.Dirs.Static, err = filepath.Abs(c.Dirs.Static); err != nil { - return nil, err } return &c, nil