summaryrefslogtreecommitdiff
path: root/scan.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-07 20:35:43 -0600
committerJeff Carr <[email protected]>2025-01-07 20:35:43 -0600
commitea35f3c0fb4d3ac45569ed6a4715f7f1a25e4a02 (patch)
treef2660002cb37c126bb543dac2b87304fc2ec05cb /scan.go
parent2cc7e7aa46615cb2a8e559d31bf4db9ed203bbf7 (diff)
attempt to set repo.State
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())