From 7f1f8d4028fada967beb484e30a336dfa30e6806 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 6 Dec 2024 01:50:03 -0600 Subject: code moved to gitpb --- gitCheckout.go | 52 ++++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'gitCheckout.go') diff --git a/gitCheckout.go b/gitCheckout.go index 1ade5c6..612464f 100644 --- a/gitCheckout.go +++ b/gitCheckout.go @@ -1,39 +1,39 @@ package forgepb import ( - "errors" - - "go.wit.com/lib/gui/repostatus" "go.wit.com/log" ) func (f *Forge) GitPull() bool { - var localonly int - var badmap int + f.Repos.RillGitPull(5, 5) + /* - log.Log(FORGEPBWARN, "running git pull everywhere") - var failed int = 0 - loop := f.Repos.SortByGoPath() - for loop.Scan() { - repo := loop.Next() - if out, err := repo.GitPull(); err == nil { - log.Log(FORGEPBWARN, "Ran git pull ok", repo.GetGoPath(), out) - } else { - failed += 1 - // repo.DumpTags() - if errors.Is(repostatus.ErrorGitPullOnLocal, err) { - localonly += 1 - continue + var localonly int + var badmap int + + log.Log(FORGEPBWARN, "running git pull everywhere") + var failed int = 0 + for loop.Scan() { + repo := loop.Next() + if out, err := repo.GitPull(); err == nil { + log.Log(FORGEPBWARN, "Ran git pull ok", repo.GetGoPath(), out) + } else { + failed += 1 + // repo.DumpTags() + if errors.Is(repostatus.ErrorGitPullOnLocal, err) { + localonly += 1 + continue + } + badmap += 1 + log.Log(FORGEPBWARN, "bad unknown git error", repo.GetGoPath(), out, err) } - badmap += 1 - log.Log(FORGEPBWARN, "bad unknown git error", repo.GetGoPath(), out, err) } - } - log.Log(FORGEPBWARN, "Ran git pull in all repos. failure count =", failed) - log.Log(FORGEPBWARN, "Ran git pull in all repos. bad errors =", badmap) - if localonly != 0 { - log.Log(FORGEPBWARN, "Ran git pull in all repos. ignored local only branches =", localonly) - } + log.Log(FORGEPBWARN, "Ran git pull in all repos. failure count =", failed) + log.Log(FORGEPBWARN, "Ran git pull in all repos. bad errors =", badmap) + if localonly != 0 { + log.Log(FORGEPBWARN, "Ran git pull in all repos. ignored local only branches =", localonly) + } + */ return true } -- cgit v1.2.3