wrong logic for checkout master
This commit is contained in:
parent
835c000aef
commit
16f0b731c5
|
@ -179,15 +179,15 @@ func rillCheckoutMaster(repo *gitpb.Repo) error {
|
||||||
repo.CheckoutMaster()
|
repo.CheckoutMaster()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
if repo.GetUserVersion() != repo.GetDevelVersion() {
|
|
||||||
// don't switch branches if the user branch has uncommitted patches
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
if me.forge.Config.IsReadOnly(repo.GetGoPath()) {
|
if me.forge.Config.IsReadOnly(repo.GetGoPath()) {
|
||||||
// skip other checks for readonly repos
|
// skip other checks for readonly repos
|
||||||
repo.CheckoutMaster()
|
repo.CheckoutMaster()
|
||||||
return nil
|
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() {
|
if repo.GetDevelVersion() != repo.GetMasterVersion() {
|
||||||
// don't switch braches if the devel branch does not match master (needs merge)
|
// don't switch braches if the devel branch does not match master (needs merge)
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue