diff options
| author | Jeff Carr <[email protected]> | 2025-09-13 05:33:11 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-13 05:33:11 -0500 |
| commit | 0f895e83e62749bb1d716033f5f300d9d1c548ac (patch) | |
| tree | f0d29c4b96f998469cefe140006c4e0a20a361aa /rill.go | |
| parent | ce4af38e8b7f05a6d8b48bc957091de0b0b0a9e7 (diff) | |
use config GO library
Diffstat (limited to 'rill.go')
| -rw-r--r-- | rill.go | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -34,7 +34,6 @@ func (f *Forge) rillUpdate(pool1 int, pool2 int) (int, error) { // Concurrency = 10 err := rill.ForEach(rills, pool2, func(repo *gitpb.Repo) error { counter += 1 - // log.Info("rill.ForEach() gopath=", repo.GetGoPath()) return f.updateRepo(repo) }) @@ -43,14 +42,12 @@ func (f *Forge) rillUpdate(pool1 int, pool2 int) (int, error) { func (f *Forge) updateRepo(repo *gitpb.Repo) error { if !repo.IsValidDir() { - log.Printf("%10s %-50s gopath=%s\n", "git dir is missing\n", repo.FullPath, repo.GetGoPath()) + log.Printf("%10s %-50s gopath=%s\n", "git dir is missing\n", repo.FullPath, repo.GetNamespace()) f.Repos.DeleteByFullPath(repo.FullPath) - f.configSave = true return nil } if repo.HasChanged() { - f.configSave = true // log.Info("repo changed ", repo.FullPath, repo.StateChange) if err := repo.ReloadCheck(); err != nil { return err @@ -63,7 +60,6 @@ func (f *Forge) updateRepo(repo *gitpb.Repo) error { } else { log.Info("readonly flag on repo is wrong", repo.GetGoPath()) repo.ReadOnly = true - f.configSave = true } } return nil @@ -102,7 +98,6 @@ func (f *Forge) RillReload() int { if !repo.HasChanged() { return nil } - f.configSave = true repo.ReloadCheck() counter += 1 return nil |
