summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go18
1 files changed, 6 insertions, 12 deletions
diff --git a/main.go b/main.go
index 3c98bb3..25ca301 100644
--- a/main.go
+++ b/main.go
@@ -71,7 +71,6 @@ func main() {
// scan in the repo map first
// hopefully this is the list of all the golang packages and only the GUI golang packages
me.repos = makeRepoView()
- log.Sleep(3)
// create the right side of the main window
createReleaseBox(me.mainBox)
@@ -101,16 +100,10 @@ func main() {
})
}
-func setRepoState() {
- // start the initail scan and make sure each repo is set
- // to the master branch
+// start the initail scan and make sure each repo is set
+// to the master branch
+func setBranchToMaster() {
for _, repo := range me.repos.View.AllRepos() {
- if repo.ReadOnly() {
- continue
- }
- if whitelist(repo.GoPath()) {
- continue
- }
if repo.Status.CheckoutMaster() {
log.Warn("git checkout master branch worked", repo.Name())
} else {
@@ -118,6 +111,9 @@ func setRepoState() {
}
repo.NewScan()
}
+}
+
+func setTargetVersion() {
// go through and set the target versions for each repo
// todo: add sanity checking in repolist to verify these and/or autocompute them
// for now, just don't be stupid when you set your ENV vars
@@ -147,8 +143,6 @@ func setRepoState() {
lasttag := repo.Status.GetLastTagVersion()
repo.Status.SetTargetVersion(lasttag)
}
- }
- for _, repo := range me.repos.View.AllRepos() {
repo.NewScan()
}
}