Update pre-push hook so that only maint-* and release-* can get pushed to origin.
See legacy/trac#29531 for motivation Edit: correct ticket
issue