From 2a47f1e547d2cda3d85d5e6c8c78a663b139fc9f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 13 Sep 2025 05:33:31 -0500 Subject: cleaning up obscure git cases --- checkout.go | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'checkout.go') 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 } -- cgit v1.2.3