diff options
Diffstat (limited to 'doCheckout.go')
| -rw-r--r-- | doCheckout.go | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/doCheckout.go b/doCheckout.go index 49c11f9..50feaf7 100644 --- a/doCheckout.go +++ b/doCheckout.go @@ -130,16 +130,16 @@ func doAllCheckoutUser() error { log.Printf("User branch check. %d total repos. (%d ok) (%d not on user branch) (%s)\n", total, count, nope, shell.FormatDuration(time.Since(now))) if err != nil { // display all repos not on user - me.found = new(gitpb.Repos) + found := new(gitpb.Repos) all := me.forge.Repos.SortByFullPath() for all.Scan() { repo := all.Next() if repo.GetCurrentBranchName() != repo.GetUserBranchName() { - me.found.AppendByGoPath(repo) + found.AppendByGoPath(repo) } } - me.forge.PrintHumanTable(me.found) - log.Printf("There are %d repos that are NOT on the user branch\n", me.found.Len()) + me.forge.PrintHumanTable(found) + log.Printf("There are %d repos that are NOT on the user branch\n", found.Len()) return err } return nil @@ -172,16 +172,16 @@ func doAllCheckoutDevel() error { log.Printf("Devel branch check. %d total repos. (%d ok) (%d not on devel branch) (%s)\n", total, count, nope, shell.FormatDuration(time.Since(now))) if err != nil { // display all repos not on user - me.found = new(gitpb.Repos) + found := new(gitpb.Repos) all := me.forge.Repos.SortByFullPath() for all.Scan() { repo := all.Next() if repo.GetCurrentBranchName() != repo.GetDevelBranchName() { - me.found.AppendByGoPath(repo) + found.AppendByGoPath(repo) } } - me.forge.PrintHumanTable(me.found) - log.Printf("There are %d repos that are NOT on the devel branch\n", me.found.Len()) + me.forge.PrintHumanTable(found) + log.Printf("There are %d repos that are NOT on the devel branch\n", found.Len()) return err } return nil @@ -239,16 +239,16 @@ func doAllCheckoutMaster() error { log.Printf("Master branch check. %d total repos. (%d ok) (%d not on master branch) (%s)\n", total, count, nope, shell.FormatDuration(time.Since(now))) if err != nil { // display all repos not on master - me.found = new(gitpb.Repos) + found := new(gitpb.Repos) all := me.forge.Repos.SortByFullPath() for all.Scan() { repo := all.Next() if repo.GetCurrentBranchName() != repo.GetMasterBranchName() { - me.found.AppendByGoPath(repo) + found.AppendByGoPath(repo) } } - me.forge.PrintHumanTable(me.found) - log.Printf("There are %d repos that are NOT on the master branch\n", me.found.Len()) + me.forge.PrintHumanTable(found) + log.Printf("There are %d repos that are NOT on the master branch\n", found.Len()) return err } return nil |
