diff options
| author | Jeff Carr <[email protected]> | 2025-01-07 06:46:55 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-07 06:46:55 -0600 |
| commit | 7ccbf7f59d389013639264c8a5b541b53ecb2627 (patch) | |
| tree | 800922835a237f49d34779750c90b568f748c36a /main.go | |
| parent | 209c270add8b3877cc0eb3e8facc274f8e20f492 (diff) | |
say goodbye finally
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 } +*/ |
