summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/main.go b/main.go
index 9580677..d4548b5 100644
--- a/main.go
+++ b/main.go
@@ -115,7 +115,9 @@ func main() {
// find myself. the guireleaser directory is used as a working scratchpad
// for running go commands that can mess up the go.* files
- for _, repo := range me.repos.View.AllRepos() {
+ loop := me.repos.View.ReposSortByName()
+ for loop.Scan() {
+ repo := loop.Repo()
if repo.GoPath() == "go.wit.com/apps/guireleaser" {
if me.release.guireleaser == nil {
me.release.guireleaser = repo
@@ -146,7 +148,9 @@ func main() {
// to the master branch
func setAllBranchesToMaster() bool {
var worked bool = true
- for _, repo := range me.repos.View.AllRepos() {
+ loop := me.repos.View.ReposSortByName()
+ for loop.Scan() {
+ repo := loop.Repo()
if repo.ReadOnly() {
continue
}