summaryrefslogtreecommitdiff
path: root/globalBuildOptions.go
diff options
context:
space:
mode:
Diffstat (limited to 'globalBuildOptions.go')
-rw-r--r--globalBuildOptions.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/globalBuildOptions.go b/globalBuildOptions.go
index 78d708f..04d39db 100644
--- a/globalBuildOptions.go
+++ b/globalBuildOptions.go
@@ -9,7 +9,6 @@ import (
"go.wit.com/gui"
"go.wit.com/lib/gadgets"
- "go.wit.com/lib/gui/repolist"
"go.wit.com/lib/gui/shell"
)
@@ -74,7 +73,9 @@ func globalBuildOptions(vbox *gui.Node) {
me.setBranchB = grid.NewButton("set current branch to:", func() {
targetName := me.newBranch.String()
log.Warn("setting all branches to", targetName)
- for _, repo := range repolist.AllRepos() {
+ loop := me.repos.View.ReposSortByName()
+ for loop.Scan() {
+ repo := loop.Repo()
repo.Status.CheckoutBranch(targetName)
repo.Scan()
}