summaryrefslogtreecommitdiff
path: root/reloadBranches.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-03 17:19:35 -0500
committerJeff Carr <[email protected]>2025-10-03 17:19:35 -0500
commita8cde5da23d912ce2b5daa52083bedc296750ff5 (patch)
tree509178ef6686a96ca648e6ab6381ee7ea13787de /reloadBranches.go
parent2a04c33edf87e5396ceb3cc829622c16ce3c173a (diff)
more movement towards state in the PBv0.0.143
Diffstat (limited to 'reloadBranches.go')
-rw-r--r--reloadBranches.go7
1 files changed, 3 insertions, 4 deletions
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 {