use gitweb/gitolite directory layout (including subdirs)
1 file changed, 1 insertion(+), 5 deletions(-)
changed files
M config/config.go → config/config.go
@@ -9,10 +9,9 @@ "gopkg.in/yaml.v3" ) type Repo struct { - ScanPath string `yaml:"scanPath"` + Root string `yaml:"root"` Readme []string `yaml:"readme"` MainBranch []string `yaml:"mainBranch"` - Ignore []string `yaml:"ignore,omitempty"` Unlisted []string `yaml:"unlisted,omitempty"` }@@ -50,9 +49,6 @@ if err := yaml.Unmarshal(b, &c); err != nil { return nil, fmt.Errorf("parsing config: %w", err) } - if c.Repo.ScanPath, err = filepath.Abs(c.Repo.ScanPath); err != nil { - return nil, err - } if c.Dirs.Static, err = filepath.Abs(c.Dirs.Static); err != nil { return nil, err }