all repos — legit @ eda8b58d9f2e85f1bae92ce3b70f279b89031046

web frontend for git, written in go

git: find main branch from config

commit

eda8b58d9f2e85f1bae92ce3b70f279b89031046

parent

551c6637250172c5a2ca05070c011b1d72bb7d02

1 file changed, 6 insertions(+), 5 deletions(-)

changed files
M config/config.goconfig/config.go
@@ -8,10 +8,11 @@ "gopkg.in/yaml.v3"
) type Config struct { - Git struct { - ScanPath string `yaml:"scanPath"` - Readme []string `yaml:"readme"` - } `yaml:"git"` + Repo struct { + ScanPath string `yaml:"scanPath"` + Readme []string `yaml:"readme"` + MainBranch []string `yaml:"mainBranch"` + } `yaml:"repo"` Template struct { Dir string `yaml:"dir"` } `yaml:"template"`
@@ -21,7 +22,7 @@ Description string `yaml:"description"`
} `yaml:"meta"` Server struct { Host string `yaml:"host"` - Port int `yaml:"port"` + Port int `yaml:"port"` } `yaml:"server"` }