summaryrefslogtreecommitdiff
path: root/newRepo.go
diff options
context:
space:
mode:
Diffstat (limited to 'newRepo.go')
-rw-r--r--newRepo.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/newRepo.go b/newRepo.go
index 56002fc..f670edc 100644
--- a/newRepo.go
+++ b/newRepo.go
@@ -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 {