summaryrefslogtreecommitdiff
path: root/repoNew.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-18 19:36:05 -0600
committerJeff Carr <[email protected]>2024-12-18 19:36:05 -0600
commit934daa5a3b5e936ea384d8fad0659d60b8d313f9 (patch)
tree2e0c2bb8c86f80719d28b85eca0bc24a08a6fde6 /repoNew.go
parenta97b66e8f23266db6652ec34cc9b1446e4ba65e5 (diff)
maybe works somewhat
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() {