diff options
Diffstat (limited to 'scan.go')
| -rw-r--r-- | scan.go | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -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()) |
