diff options
| author | Jeff Carr <[email protected]> | 2025-10-04 04:16:36 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-04 04:16:36 -0500 |
| commit | ef7e82b9859bcf789f0eceef8d6f051617c50dde (patch) | |
| tree | fb80a4400f64ffa14d3168b25c3fa7cf9c39c172 | |
| parent | a30990850e8a94653423e71648f727cd72997b95 (diff) | |
more attempts at Reload()v0.25.49
| -rw-r--r-- | doCheckout.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doCheckout.go b/doCheckout.go index b80465b..c6d4798 100644 --- a/doCheckout.go +++ b/doCheckout.go @@ -9,11 +9,16 @@ import ( "go.wit.com/lib/gui/shell" "go.wit.com/lib/protobuf/forgepb" + "go.wit.com/lib/protobuf/gitpb" "go.wit.com/log" ) // trys to figure out if there is still something to update +func didRepoChangeDir(repo *gitpb.Repo) error { + return repo.DidRepoChangeDir() +} + func doCheckout() error { if argv.Checkout.User != nil { start := time.Now() @@ -39,9 +44,17 @@ func doCheckout() error { err := me.forge.DoAllCheckoutMaster() count := me.forge.RillReload() + log.Info("rillreload 1 count", count) + if count != 0 { + me.forge.ConfigSave() + } + count = me.forge.RillReload() + log.Info("rillreload 2 count", count) if count != 0 { me.forge.ConfigSave() } + stats := me.forge.RillFuncError(didRepoChangeDir) + log.Printf("total stats len%d\n", len(stats)) if err != nil { badExit(err) } |
