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 --- reloadBranches.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'reloadBranches.go') diff --git a/reloadBranches.go b/reloadBranches.go index 8c66ec6..b5fadb2 100644 --- a/reloadBranches.go +++ b/reloadBranches.go @@ -22,9 +22,8 @@ import ( // actually, this is to attempt to verify absolutely everything // is pushed upstream before doing a rm -rf ~/go/src // TODO: revisit this code in the autotypist later -func (repo *Repo) CheckBranches() bool { +func (repo *Repo) CheckBranches() string { var hashCheck string - var perfect bool = true all := repo.GetBranches() path := filepath.Join(repo.FullPath, ".git/refs/") for _, b := range all { @@ -64,10 +63,10 @@ func (repo *Repo) CheckBranches() bool { // log.Info("notsure why this git show is here", hash) } else { // log.Printf("UNKNOWN BRANCH %-50s %s %s %s\n", repo.GetFullPath(), r.Stdout, cmd, b) - perfect = false + return b } } - return perfect + return "" } func (repo *Repo) GetBranches() []string { -- cgit v1.2.3