summaryrefslogtreecommitdiff
path: root/doCheckout.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-28 11:26:31 -0600
committerJeff Carr <[email protected]>2025-01-28 14:02:39 -0600
commit7402aaded7b9f9587eb5ba863b732c9c9e8ee9fe (patch)
tree7774a5b2132b810253fe213d4449bf382b539a4f /doCheckout.go
parentdd7355571d80b4d6c970e417df85244dbfd253e0 (diff)
fixes from cleaning an old set of reposv0.22.60
Diffstat (limited to 'doCheckout.go')
-rw-r--r--doCheckout.go18
1 files changed, 10 insertions, 8 deletions
diff --git a/doCheckout.go b/doCheckout.go
index 40522e7..eb85818 100644
--- a/doCheckout.go
+++ b/doCheckout.go
@@ -199,14 +199,16 @@ func rillCheckoutMaster(repo *gitpb.Repo) error {
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
- }
+ /*
+ 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
}