Disable AGit review refs at git-gate #506
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Gitea AGit accepts pushes to
refs/for/*,refs/draft/*, andrefs/for-review/*and creates pull requests backed by server-managed review refs rather than normalrefs/heads/*branches.That conflicts with bot-bottle’s git-gate workflow:
refs/pull/<n>/head;Desired behavior
Git-gate should reject creation or updates of AGit review refs and instruct callers to push to
refs/heads/<branch>before opening a pull request. Normal branches and tags must remain unaffected. Deletion of old AGit refs should remain allowed for cleanup.Acceptance criteria
refs/for/*,refs/draft/*, orrefs/for-review/*fail before scanning or upstream forwarding;