diff options
| author | Jeff Carr <[email protected]> | 2024-12-17 21:14:39 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-17 21:14:39 -0600 |
| commit | c4f9430e4633aa13b993a9ac6102dcdbcc5eb9c2 (patch) | |
| tree | d0eb52656ee14e214322ace2d4bd766ff3b155b4 | |
| parent | 7cdb2bf6a0c88ac860b03a547918bb6d85e6fdb6 (diff) | |
keep trying to fix init() and update()
| -rw-r--r-- | init.go | 10 | ||||
| -rw-r--r-- | rill.go | 4 |
2 files changed, 3 insertions, 11 deletions
@@ -35,7 +35,6 @@ func Init() *Forge { } f.rillUpdate(20, 10) - // f.updateAll() if f.configSave { f.ConfigSave() @@ -45,15 +44,6 @@ func Init() *Forge { return f } -func (f *Forge) updateAll() { - all := f.Repos.SortByFullPath() - for all.Scan() { - repo := all.Next() - - f.updateRepo(repo) - } -} - // only init's the protobuf. intended to not scan or change anything func InitPB() *Forge { f := new(Forge) @@ -46,10 +46,12 @@ func (f *Forge) updateRepo(repo *gitpb.Repo) error { if repo.DidRepoChange() { f.configSave = true - log.Info("repo changed", repo.StateChange, repo.FullPath) + log.Info("repo changed ", repo.FullPath, repo.StateChange) if err := repo.Reload(); err != nil { return err } + } else { + // log.Info("repo did not change", repo.FullPath, repo.StateChange) } if f.Config.IsReadOnly(repo.GetGoPath()) { if repo.ReadOnly { |
