1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/sh -eu set -eu BASE="/data/git/bin" # Check receive policy $BASE/check-receive-policy # Check commit policy for each one while read oldrev newrev refname; do $BASE/check-rev-policy $oldrev $newrev $refname || exit 1 done