diff options
| author | Jeff Carr <[email protected]> | 2024-12-17 20:48:08 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-17 20:48:08 -0600 |
| commit | 7cdb2bf6a0c88ac860b03a547918bb6d85e6fdb6 (patch) | |
| tree | 999bf70b7a54d3f64f1e40e5ed4ff26a5f350de3 /init.go | |
| parent | 23b2b26643596aa1aeba229067b14a97d297f8bf (diff) | |
rill repo.Update()
Diffstat (limited to 'init.go')
| -rw-r--r-- | init.go | 24 |
1 files changed, 3 insertions, 21 deletions
@@ -34,7 +34,8 @@ func Init() *Forge { log.Info("forgepb.Scan() Scan found", end-start, "new git repositories. Total =", end) } - f.updateAll() + f.rillUpdate(20, 10) + // f.updateAll() if f.configSave { f.ConfigSave() @@ -49,26 +50,7 @@ func (f *Forge) updateAll() { for all.Scan() { repo := all.Next() - if !repo.IsValidDir() { - log.Printf("%10s %-50s", "bad git dir\n", repo.FullPath) - f.Repos.DeleteByFullPath(repo.FullPath) - f.configSave = true - continue - } - - if repo.RepoChanged() { - f.configSave = true - log.Info("repo changed", repo.StateChange, repo.FullPath) - repo.Reload() - } - if f.Config.IsReadOnly(repo.GetGoPath()) { - if repo.ReadOnly { - } else { - log.Info("readonly flag on repo is wrong", repo.GetGoPath()) - repo.ReadOnly = true - f.configSave = true - } - } + f.updateRepo(repo) } } |
