summaryrefslogtreecommitdiff
path: root/scan.go
diff options
context:
space:
mode:
Diffstat (limited to 'scan.go')
-rw-r--r--scan.go13
1 files changed, 5 insertions, 8 deletions
diff --git a/scan.go b/scan.go
index f13f83a..39e2836 100644
--- a/scan.go
+++ b/scan.go
@@ -56,23 +56,20 @@ func (r *RepoRow) NewScan() int {
return changed
}
- // run the repostatus update
- r.Status.Update()
+ pb.Reload()
if r.lastTag != nil {
r.lastTag.SetLabel(pb.GetLastTag())
}
- if r.masterVersion == nil {
- panic("what the fuck node")
- }
-
- pb.State = r.Status.GitState()
+ // run the repostatus update
+ r.Status.Update()
r.masterVersion.SetLabel(pb.GetMasterVersion())
r.develVersion.SetLabel(pb.GetDevelVersion())
r.userVersion.SetLabel(pb.GetUserVersion())
- r.gitState.SetLabel(pb.GetState())
+ r.gitState.SetLabel(r.Status.CheckGitState())
+ r.pbState.SetLabel(pb.GetState())
r.currentName.SetLabel(pb.GetCurrentBranchName())
r.currentVersion.SetLabel(pb.GetCurrentBranchVersion())