-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix adding branch as protected to not allow pushing to it #2556
Fix adding branch as protected to not allow pushing to it #2556
Conversation
LGTM |
@lafriks IMO there should be a migration from old protected branches as well, since existing protected branches do not work after that change. |
@daviian they will not work only for those who added protected branches in 1.2-rcX. Protected branches when upgrading from 1.1 to 1.2 they will work and adding new migration here would break upgrade path from 1.2 to 1.3 later |
@lafriks But when upgrading from 1.1 to 1.2 existing protected branches have |
I would suggest a quick'n'dirty workaround to release v1.2 since it is already fixed in current master. Simply remove the |
@daviian in fact, canpush never be used, when remove from protected branch, the database record will be deleted not updated canpush to false. |
that means, this PR will not break anything, I think. |
also this column will be needed anyway later to be able to set that branch can be pushed to always but are protected only from deletion |
8d8e0e2
to
918f0d4
Compare
@lafriks Tested and works like a charm 👍 |
LGTM |
Make LG-TM work |
Make LG-TM work again |
Fixes #2517
This PR targets 1.2 branch as bug is present only in it. In master branch it works fine as @lunny did rewrite protected branch UI & functionality with whitelist support