Description
- Create a repository, add an empty file
foo_file
- Add a branch rule that protects the
main branch, but "unprotects" this file:
- Edit
foo_file via gitea UI. The "Commit directly to the main branch." is greyed out, even though it's possible to push the change directly to the main branch in that situation. Pushing a commit via git cli works as expected.
Screenshots
Gitea Version
Version: 1.27.0+dev-210-g67f86bc3fe
Can you reproduce the bug on the Gitea demo site?
Yes
Operating System
Ubuntu 24.04
Browser Version
Firefox 150.0.2 (64-bit)
Description
foo_filemainbranch, but "unprotects" this file:foo_filevia gitea UI. The "Commit directly to the main branch." is greyed out, even though it's possible to push the change directly to the main branch in that situation. Pushing a commit via git cli works as expected.Screenshots
Gitea Version
Version: 1.27.0+dev-210-g67f86bc3fe
Can you reproduce the bug on the Gitea demo site?
Yes
Operating System
Ubuntu 24.04
Browser Version
Firefox 150.0.2 (64-bit)