summaryrefslogtreecommitdiff
path: root/doCommit.go
diff options
context:
space:
mode:
Diffstat (limited to 'doCommit.go')
-rw-r--r--doCommit.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/doCommit.go b/doCommit.go
index 461af47..4841a1c 100644
--- a/doCommit.go
+++ b/doCommit.go
@@ -16,10 +16,8 @@ func doCommit() {
log.Info("do a commit everywhere")
doCheckDirtyAndConfigSave()
found := findDirty()
- all := found.All()
var newpatches bool
- for all.Scan() {
- repo := all.Next()
+ for repo := range found.IterAll() {
log.Info("do a commit on repo", repo.GetGoPath())
if err := doCommitRepo(repo); err != nil {
badExit(err)