diff options
| author | Jeff Carr <[email protected]> | 2025-01-17 10:59:05 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-17 10:59:05 -0600 |
| commit | 9acbb24284ecda4f5ace1cb3d200e363c47c8725 (patch) | |
| tree | 7af266bff19df14c0961d6f05e1df9e4895c5e77 /doPull.go | |
| parent | af84727178d1fbe1df04a5f8ee536798f3761d6d (diff) | |
start an 'examine' argv
Diffstat (limited to 'doPull.go')
| -rw-r--r-- | doPull.go | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/doPull.go b/doPull.go new file mode 100644 index 0000000..44a1b82 --- /dev/null +++ b/doPull.go @@ -0,0 +1,31 @@ +package main + +import ( + "go.wit.com/lib/protobuf/gitpb" + "go.wit.com/log" +) + +func doGitPull() { + allerr := me.found.RillGitPull(40, 5) + + all := me.found.SortByFullPath() + for all.Scan() { + repo := all.Next() + result := allerr[repo] + if result.Error == gitpb.ErrorGitPullOnDirty { + log.Info("skip git pull. repo is dirty", repo.GetGoPath()) + continue + } + if result.Error == gitpb.ErrorGitPullOnLocal { + log.Info("skip git pull. local branch ", repo.GetGoPath()) + continue + } + if result.Exit == 0 { + continue + } + + log.Info("git pull error:", repo.GetGoPath(), result.Error) + log.Info("git pull error:", repo.GetGoPath(), result.Stdout) + } + +} |
