diff --git a/server/config/raw/global_cfg.go b/server/config/raw/global_cfg.go index c13ac318c..34688bc55 100644 --- a/server/config/raw/global_cfg.go +++ b/server/config/raw/global_cfg.go @@ -31,15 +31,15 @@ type GlobalCfg struct { type AdhocMode struct { Repo string `yaml:"repo" json:"repo"` - Root string `yaml:"root" json:"root"` Revision string `yaml:"revision" json:"revision"` + Branch string `yaml:"branch" json:"branch"` } func (t AdhocMode) ToValid() valid.AdhocMode { return valid.AdhocMode{ Repo: t.Repo, - Root: t.Root, Revision: t.Revision, + Branch: t.Branch, } } diff --git a/server/config/valid/global_cfg.go b/server/config/valid/global_cfg.go index 14683da8d..d99671d63 100644 --- a/server/config/valid/global_cfg.go +++ b/server/config/valid/global_cfg.go @@ -69,8 +69,8 @@ type GlobalCfg struct { type AdhocMode struct { Repo string - Root string Revision string + Branch string } type GithubTeam struct {