summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go13
1 files changed, 9 insertions, 4 deletions
diff --git a/main.go b/main.go
index 25ca301..5464360 100644
--- a/main.go
+++ b/main.go
@@ -104,12 +104,15 @@ func main() {
// to the master branch
func setBranchToMaster() {
for _, repo := range me.repos.View.AllRepos() {
+ if whitelist(repo.GoPath()) {
+ continue
+ }
if repo.Status.CheckoutMaster() {
log.Warn("git checkout master branch worked", repo.Name())
} else {
log.Warn("git checkout master branch failed", repo.Name())
}
- repo.NewScan()
+ // repo.NewScan()
}
}
@@ -122,13 +125,13 @@ func setTargetVersion() {
// set the version for a path, it's set in stone forever. (smart system!)
// we could rename go.wit.com/widget to go.wit.com/newwidget and restart the versioning
// system, but that's rediculous and this servers to always remind me to never make this mistake again
+ var count int
for i, repo := range me.repos.View.AllRepos() {
if repo == nil {
- log.Info("initial scan i = nil", i)
+ log.Info("initial scan repo = nil", i)
continue
}
- log.Info("initial scan repo", repo.Name())
if repo.Status == nil {
log.Info("repo.status == nil", repo.Name())
continue
@@ -143,6 +146,8 @@ func setTargetVersion() {
lasttag := repo.Status.GetLastTagVersion()
repo.Status.SetTargetVersion(lasttag)
}
- repo.NewScan()
+ // repo.NewScan()
+ count += 1
}
+ log.Info("target versions set for", count, "repos")
}