diff options
| author | Jeff Carr <[email protected]> | 2024-12-18 19:36:05 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-18 19:36:05 -0600 |
| commit | 934daa5a3b5e936ea384d8fad0659d60b8d313f9 (patch) | |
| tree | 2e0c2bb8c86f80719d28b85eca0bc24a08a6fde6 /repoNew.go | |
| parent | a97b66e8f23266db6652ec34cc9b1446e4ba65e5 (diff) | |
maybe works somewhat
Diffstat (limited to 'repoNew.go')
| -rw-r--r-- | repoNew.go | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -47,20 +47,15 @@ func (f *Forge) ValidGoVersion(ver string) (bool, error) { func (f *Forge) VerifyBranchNames(newr *gitpb.Repo) { // log.Info("init worked for", newr.GoPath) - var mname string if newr.GetMasterBranchName() == "" { // try to guess what the 'master' branch is if newr.IsBranch("guimaster") { - mname = "guimaster" newr.SetMasterBranchName("guimaster") } else if newr.IsBranch("master") { - mname = "master" newr.SetMasterBranchName("master") } else if newr.IsBranch("main") { - mname = "main" newr.SetMasterBranchName("main") } else { - mname = "master" // todo, figure out the name from git newr.SetMasterBranchName("master") if newr.CheckoutMaster() { |
