diff options
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() { |
