summaryrefslogtreecommitdiff
path: root/checkout.go
diff options
context:
space:
mode:
Diffstat (limited to 'checkout.go')
-rw-r--r--checkout.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/checkout.go b/checkout.go
index 5d56e87..edc508a 100644
--- a/checkout.go
+++ b/checkout.go
@@ -2,7 +2,6 @@ package gitpb
import (
"fmt"
- "os"
"os/user"
"path/filepath"
@@ -11,20 +10,6 @@ import (
func (repo *Repo) CheckoutMaster() bool {
bName := repo.GetMasterBranchName()
- if bName == "giterr" {
- cmd := []string{"git", "checkout", "main"} // todo: figure out main
- repo.RunVerboseOnError(cmd)
- os.Exit(-1)
- // TODO: try to fix this
- if repo.checkoutBranch("main") {
- repo.MasterBranchName = "main"
- return true
- } else {
- cmd := []string{"git", "checkout", "main"} // todo: figure out main
- repo.RunVerboseOnError(cmd)
- return false
- }
- }
if repo.checkoutBranch(bName) {
return true
}