summaryrefslogtreecommitdiff
path: root/doCommon.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-06 01:48:17 -0600
committerJeff Carr <[email protected]>2024-12-06 01:48:17 -0600
commitaff3268ca6a7b6034dfbf9a9cf7ee01005a6a97f (patch)
treee647df9fd6d3ad1b8b91c95893ce087e46f6b60a /doCommon.go
parent1d352604b9a88e59284d9b1d6a46019c31816247 (diff)
rill git pull works with small settingsv0.22.12v0.22.11
Diffstat (limited to 'doCommon.go')
-rw-r--r--doCommon.go28
1 files changed, 26 insertions, 2 deletions
diff --git a/doCommon.go b/doCommon.go
index db5a0a0..81578bf 100644
--- a/doCommon.go
+++ b/doCommon.go
@@ -1,13 +1,37 @@
package main
-import "go.wit.com/log"
+import (
+ "go.wit.com/lib/protobuf/gitpb"
+ "go.wit.com/log"
+)
func doScan() {
me.forge.ScanGoSrc()
}
func doGitPull() {
- me.found.RillGitPull()
+ allerr := me.found.RillGitPull(40, 5)
+
+ all := me.found.SortByGoPath()
+ for all.Scan() {
+ repo := all.Next()
+ result := allerr[repo]
+ if result.Error == gitpb.ErrorGitPullOnDirty {
+ log.Info("skip git pull. repo is dirty", repo.GoPath)
+ continue
+ }
+ if result.Error == gitpb.ErrorGitPullOnLocal {
+ log.Info("skip git pull. local branch ", repo.GoPath)
+ continue
+ }
+ if result.Exit == 0 {
+ continue
+ }
+
+ log.Info("git pull error:", repo.GoPath, result.Error)
+ log.Info("git pull error:", repo.GoPath, result.Stdout)
+ }
+
}
func doFix() {