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