summaryrefslogtreecommitdiff
path: root/doDirty.go
diff options
context:
space:
mode:
Diffstat (limited to 'doDirty.go')
-rw-r--r--doDirty.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/doDirty.go b/doDirty.go
index bebf456..49acbfe 100644
--- a/doDirty.go
+++ b/doDirty.go
@@ -12,7 +12,6 @@ import (
)
func doDirty() {
- findAll() // select all the repos
doCheckDirtyAndConfigSave()
found := findDirty()
if argv.Verbose {
@@ -26,7 +25,7 @@ func straightCheckDirty() int {
var count int
// var total int
// now := time.Now()
- for repo := range me.found.IterAll() {
+ for repo := range me.forge.Repos.IterAll() {
// total += 1
if repo.IsDirty() {
count += 1
@@ -52,7 +51,7 @@ func doCheckDirtyAndConfigSave() {
now := time.Now()
me.forge.RillFuncError(doCheckDirty)
end := straightCheckDirty()
- log.Printf("dirty check (%d dirty repos) (%d total repos) took:%s\n", end, me.found.Len(), shell.FormatDuration(time.Since(now)))
+ log.Printf("dirty check (%d dirty repos) (%d total repos) took:%s\n", end, me.forge.Repos.Len(), shell.FormatDuration(time.Since(now)))
if start != end {
// todo: use internal forgepb configsave flag. should work?