start ignoring missing user branch

This commit is contained in:
Jeff Carr 2025-01-19 07:24:18 -06:00
parent f0f11794ed
commit 383edb2766
1 changed files with 4 additions and 0 deletions

View File

@ -173,6 +173,10 @@ func rillCheckoutMaster(repo *gitpb.Repo) error {
// repo is already on master
return nil
}
if repo.GetUserVersion() == "uerr" {
repo.CheckoutMaster()
return nil
}
if repo.GetUserVersion() != repo.GetDevelVersion() {
// don't switch branches if the user branch has uncommitted patches
return nil