From a8cde5da23d912ce2b5daa52083bedc296750ff5 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 3 Oct 2025 17:19:35 -0500 Subject: more movement towards state in the PB --- reloadRepoState.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'reloadRepoState.go') diff --git a/reloadRepoState.go b/reloadRepoState.go index 9e17add..42482c4 100644 --- a/reloadRepoState.go +++ b/reloadRepoState.go @@ -49,11 +49,11 @@ func (repo *Repo) setRepoState() { return } - if repo.CheckBranches() { - repo.State = "PERFECT" + if b := repo.CheckBranches(); b != "" { + repo.State = "unknown branch " + b return } - repo.State = "unknown branches" + repo.State = "PERFECT" } // returns true if old="v0.2.4" and new="v0.3.3" -- cgit v1.2.3