diff options
| author | Jeff Carr <[email protected]> | 2024-11-16 00:07:00 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-16 00:07:00 -0600 |
| commit | 8afc4c713576b3509e15942dfd3dae5e8b8b8906 (patch) | |
| tree | 67c7403be1d509666e49a5bc7ba688b22ab95597 /globalBuildOptions.go | |
| parent | a26ae2bcc18e133ea8a280cef3eb44ba6a96a4ec (diff) | |
fix buildv0.22.2
Diffstat (limited to 'globalBuildOptions.go')
| -rw-r--r-- | globalBuildOptions.go | 5 |
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() } |
