diff options
| author | Jeff Carr <[email protected]> | 2024-12-06 01:50:03 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-06 01:50:03 -0600 |
| commit | 7f1f8d4028fada967beb484e30a336dfa30e6806 (patch) | |
| tree | 034f6ecbfb418b00636ce3c52e9a82d766c8663e /gitCheckout.go | |
| parent | e25095f2e7ab2d06a480b79902a001dfd395fe67 (diff) | |
code moved to gitpbv0.0.26
Diffstat (limited to 'gitCheckout.go')
| -rw-r--r-- | gitCheckout.go | 52 |
1 files changed, 26 insertions, 26 deletions
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 } |
