diff options
| author | Jeff Carr <[email protected]> | 2025-08-29 10:28:58 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-08-29 10:28:58 -0500 |
| commit | b70417565aaff44d3139ce1f6e9d3edd06fa5291 (patch) | |
| tree | 187cfba6da572fba8332c4dd81f618182aaf00af /doNormal.go | |
| parent | 9bcf2d968c7565516ee55c4473670a888f36b3f7 (diff) | |
fix branch names if they somehow end up blankv0.22.130
Diffstat (limited to 'doNormal.go')
| -rw-r--r-- | doNormal.go | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/doNormal.go b/doNormal.go index c85c8df..b625f65 100644 --- a/doNormal.go +++ b/doNormal.go @@ -14,7 +14,7 @@ func doNormal() bool { if allerr := me.forge.RillRepos(checkNormalRepoState); len(allerr) != 0 { log.Info("Some repos are not in a 'normal' state. error count =", len(allerr)) for repo, err := range allerr { - log.Info("repo not normal", repo.GetFullPath(), err) + log.Info("ABNORMAL:", repo.GetFullPath(), err) } return false } @@ -27,6 +27,19 @@ func doNormal() bool { // this needs to run each time in case repos were added manually by the user // this also verifies that func checkNormalRepoState(repo *gitpb.Repo) error { + if repo.GetMasterBranchName() == "" { + me.forge.VerifyBranchNames(repo) + configSave = true + } + if repo.GetMasterBranchName() == "" { + return log.Errorf("master branch name blank") + } + if repo.GetDevelBranchName() == "" { + return log.Errorf("devel branch name blank") + } + if repo.GetUserBranchName() == "" { + return log.Errorf("user branch name blank") + } if _, err := repo.MakeLocalDevelBranch(); err != nil { return err } |
