package gitpb func (repo *Repo) Reload() error { repo.Tags = new(GitTags) repo.UpdateGitTags() repo.GoDeps = new(GoDeps) repo.ParseGoSum() if repo.GoInfo != nil { repo.ReloadGo() } return nil } func (repo *Repo) ReloadGo() error { repo.GoPlugin = false repo.GoProtobuf = false repo.GoLibrary = false repo.GoBinary = false switch repo.goListRepoType() { case "plugin": repo.GoPlugin = true case "protobuf": repo.GoProtobuf = true case "library": repo.GoLibrary = true case "binary": repo.GoBinary = true } return nil } func (repo *Repo) SetDevelBranchName(bname string) { repo.DevelBranchName = bname } func (repo *Repo) SetUserBranchName(bname string) { repo.UserBranchName = bname }