summaryrefslogtreecommitdiff
path: root/pre-receive
blob: ec9c4611d64a73b8ee4d87c8a0c21b1ae6098b9e (plain)
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