diff options
| author | Jeff Carr <[email protected]> | 2025-09-13 05:33:31 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-13 05:33:31 -0500 |
| commit | 2a47f1e547d2cda3d85d5e6c8c78a663b139fc9f (patch) | |
| tree | 430df61927de88fcc1be5dfeb7a05e224b30661f /checkout.go | |
| parent | 719287c3bfa349c74c2ce86b01299c97169ec3a8 (diff) | |
cleaning up obscure git casesv0.0.127
Diffstat (limited to 'checkout.go')
| -rw-r--r-- | checkout.go | 15 |
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 } |
