From ea35f3c0fb4d3ac45569ed6a4715f7f1a25e4a02 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 7 Jan 2025 20:35:43 -0600 Subject: attempt to set repo.State --- scan.go | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'scan.go') 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()) -- cgit v1.2.3