#4071: Block pushes to origin/ in gitolite ACLs -----------------------+----------------------- Reporter: jkeating | Owner: rel-eng@… Type: task | Status: new Milestone: | Component: git Resolution: | Keywords: Blocked By: | Blocking: -----------------------+-----------------------
Comment (by till):
This update-hook should allow this: {{{ #! /bin/sh
refname="${1}" sha1_old="${2}" sha1_new="${3}"
echo "${refname}" | grep -q '^origin/' && exit 1 || exit 0 }}}