diff --git a/init.go b/init.go index 78b3ae5..29f7af5 100644 --- a/init.go +++ b/init.go @@ -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) diff --git a/rill.go b/rill.go index 4876aa7..312970b 100644 --- a/rill.go +++ b/rill.go @@ -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 {