diff options
| author | Jeff Carr <[email protected]> | 2025-01-19 03:39:35 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-19 03:39:35 -0600 |
| commit | b9d4f88abdde4ff72a454f875c64e9c513840a58 (patch) | |
| tree | 05ce48c0bff992b266348f619c26383e29d14fcd /doCheckout.go | |
| parent | 69eee080459392cef8382a9376aa22692e9ca830 (diff) | |
more checks on merge to master
Diffstat (limited to 'doCheckout.go')
| -rw-r--r-- | doCheckout.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doCheckout.go b/doCheckout.go index d9fe1a4..b168da3 100644 --- a/doCheckout.go +++ b/doCheckout.go @@ -144,6 +144,10 @@ func rillCheckoutMaster(repo *gitpb.Repo) error { // don't switch braches 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.GetCurrentBranchName() == repo.GetMasterBranchName() { // repo is already on master return nil |
