diff options
| author | Jeff Carr <[email protected]> | 2025-08-31 14:15:38 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-08-31 14:15:38 -0500 |
| commit | a84db9a7880bd2f464bb9d14e8a1cb31fcd0562b (patch) | |
| tree | 5e65da5e295000ac4efc81616fb68c55f4c394fa | |
| parent | 731a4d9da873c94f6da6673d1ebc6fc8c6223d76 (diff) | |
rm old code
| -rw-r--r-- | doCheckout.go | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/doCheckout.go b/doCheckout.go index 809434d..d0f75cb 100644 --- a/doCheckout.go +++ b/doCheckout.go @@ -218,21 +218,6 @@ func rillCheckoutMaster(repo *gitpb.Repo) error { // repo is already on master return nil } - if me.forge.Config.IsReadOnly(repo.GetGoPath()) { - // skip other checks for readonly repos - repo.CheckoutMaster() - return nil - } - /* - if repo.GetUserVersion() != repo.GetDevelVersion() { - // don't switch branches if the user branch has uncommitted patches - return nil - } - if repo.GetDevelVersion() != repo.GetMasterVersion() { - // don't switch braches if the devel branch does not match master (needs merge) - return nil - } - */ repo.CheckoutMaster() return nil } |
