aboutsummaryrefslogtreecommitdiffstats
path: root/modules/subversion/templates/no_root_commit
blob: 5dab449ff5a9db734d7017e94a99d022199807f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

REP="$1"
TXN="$2"

author=$(svnlook author -t "$TXN" "$REP")

if [ "$author" == 'root' ]; then
    echo "no root commit allowed" >&2
    exit 1
fi