diff options
| author | Jeff Carr <[email protected]> | 2024-12-30 06:03:49 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-30 06:03:49 -0600 |
| commit | 6d0503b9e572dd49cf5eaf331725f5e8f570a94c (patch) | |
| tree | 6920c415df5ea191e379516dd96b10f74fa70b9d | |
| parent | c9639a8db225874dfe1f0085aaba1494c4cedc78 (diff) | |
sure thingv0.23.16
| -rw-r--r-- | main.go | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -29,6 +29,18 @@ func main() { me.forge = forgepb.Init() me.found = new(gitpb.Repos) + all := me.forge.Repos.SortByFullPath() + for all.Scan() { + repo := all.Next() + if repo.IsMasterBranch() { + continue + } + log.Info("not on master branch:", repo.GetCurrentBranchName(), repo.GetMasterBranchName()) + log.Info("not on master branch:", repo.GetFullPath()) + log.Info("you can not continue if repos are not on master branches") + os.Exit(-1) + } + // me.forge.ConfigPrintTable() os.Setenv("REPO_WORK_PATH", me.forge.GetGoSrc()) |
