summaryrefslogtreecommitdiff
path: root/repoNew.go
diff options
context:
space:
mode:
Diffstat (limited to 'repoNew.go')
-rw-r--r--repoNew.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/repoNew.go b/repoNew.go
index 48caf4a..d234183 100644
--- a/repoNew.go
+++ b/repoNew.go
@@ -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() {