diff options
Diffstat (limited to 'newRepo.go')
| -rw-r--r-- | newRepo.go | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -98,25 +98,26 @@ func (r *RepoList) NewRepo(path string) (*RepoRow, error) { */ // adds a gui row to the table based off the repo protobuf -func (r *RepoList) AddRepo(repo *gitpb.Repo) (*RepoRow, error) { - test, ok := r.allrepos[repo.GetGoPath()] +func (r *RepoList) AddRepo(pb *gitpb.Repo) (*RepoRow, error) { + test, ok := r.allrepos[pb.GetGoPath()] if ok { // this repo already exists return test, nil } - status, err := repostatus.NewRepoStatusWindow(repo) + status, err := repostatus.NewRepoStatusWindow(pb) if err != nil { return nil, err } newRepo := new(RepoRow) newRepo.Status = status + newRepo.pb = pb newRepo.Status.InitOk = false - newRepo.pLabel = r.reposgrid.NewLabel(repo.GoPath).SetProgName("path") + newRepo.pLabel = r.reposgrid.NewLabel(pb.GoPath).SetProgName("path") newRepo.hidden = false - r.allrepos[repo.GoPath] = newRepo + r.allrepos[pb.GoPath] = newRepo newRepo.NewScan() switch r.viewName { |
