diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 38 |
1 files changed, 21 insertions, 17 deletions
@@ -29,21 +29,23 @@ func main() { me.forge = forgepb.Init() me.found = new(gitpb.Repos) - var bad bool = false - all := me.forge.Repos.SortByFullPath() - for all.Scan() { - repo := all.Next() - if repo.IsDevelBranch() { - continue + /* + var bad bool = false + all := me.forge.Repos.SortByFullPath() + for all.Scan() { + repo := all.Next() + if repo.IsDevelBranch() { + continue + } + log.Info("not on devel branch:", repo.GetCurrentBranchName(), repo.GetDevelBranchName()) + log.Info("not on devel branch:", repo.GetFullPath()) + log.Info("you can not continue if repos are not on devel branches") + bad = true } - log.Info("not on devel branch:", repo.GetCurrentBranchName(), repo.GetDevelBranchName()) - log.Info("not on devel branch:", repo.GetFullPath()) - log.Info("you can not continue if repos are not on devel branches") - bad = true - } - if bad { - os.Exit(-1) - } + if bad { + os.Exit(-1) + } + */ // me.forge.ConfigPrintTable() os.Setenv("REPO_WORK_PATH", me.forge.GetGoSrc()) @@ -109,7 +111,7 @@ func main() { me.Disable() // register a Show/Hide function for the repo list table - me.repos.View.RegisterHideFunction(hideFunction) + // me.repos.View.RegisterHideFunction(hideFunction) // scan in the State of all the repos // TODO: should not really be necessary directly after init() @@ -124,9 +126,9 @@ func main() { repo.Status.SetReadOnly(false) } if me.forge.Config.IsPrivate(repo.GetGoPath()) { - repo.Status.SetPrivate(true) + // repo.Status.SetPrivate(true) } else { - repo.Status.SetPrivate(false) + // repo.Status.SetPrivate(false) } } @@ -151,6 +153,7 @@ func main() { }) } +/* // start the initail scan and make sure each repo is set // to the master branch func setAllBranchesToMaster() bool { @@ -177,3 +180,4 @@ func setAllBranchesToMaster() bool { } return worked } +*/ |
