summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-17 21:14:39 -0600
committerJeff Carr <[email protected]>2024-12-17 21:14:39 -0600
commitc4f9430e4633aa13b993a9ac6102dcdbcc5eb9c2 (patch)
treed0eb52656ee14e214322ace2d4bd766ff3b155b4
parent7cdb2bf6a0c88ac860b03a547918bb6d85e6fdb6 (diff)
keep trying to fix init() and update()
-rw-r--r--init.go10
-rw-r--r--rill.go4
2 files changed, 3 insertions, 11 deletions
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 {