diff options
| author | Jeff Carr <[email protected]> | 2025-08-31 15:54:19 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-08-31 15:54:19 -0500 |
| commit | 6d249abb44414cea57f496e24a682466a7772f87 (patch) | |
| tree | 8c8a8996782ae47c29e0d5556add0ebc1faf344d /doSync.go | |
| parent | f754a93493e6a12c1d60dec9b71be841b9aaa2b6 (diff) | |
Diffstat (limited to 'doSync.go')
| -rw-r--r-- | doSync.go | 25 |
1 files changed, 1 insertions, 24 deletions
@@ -6,9 +6,7 @@ package main import ( "fmt" "path/filepath" - "time" - "go.wit.com/lib/gui/shell" "go.wit.com/lib/protobuf/gitpb" "go.wit.com/log" ) @@ -27,28 +25,7 @@ func doSync() error { } func doSyncClean() error { - if err := doAllCheckoutMaster(); err != nil { - return err - } - - if _, _, _, err := IsEverythingOnMaster(); err != nil { - log.Info("Not all repos are on the master branch") - return err - } - - // force everything - argv.Force = true - - now := time.Now() - pullcount := me.forge.RillFuncError(rillPull) - count := me.forge.RillReload() - if count != 0 { - me.forge.ConfigSave() - } - - total, count, nope, _ := IsEverythingOnMaster() - log.Printf("doSyncClean() ok. %d total repos. (%d git pulled) (%d not on master branch) (%s) git pull total=%d\n", total, count, nope, shell.FormatDuration(time.Since(now)), pullcount) - + log.Printf("todo: fix this?") return nil } |
