aboutsummaryrefslogtreecommitdiffstats
path: root/modules/subversion/templates/restricted_to_user
blob: 5c70132e029cdac1e0b3d61b088ebc95d1f4f239 (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" != '<%= restricted_to_user %>' ]; then
    echo "this repository is restrected to user <%= restricted_to_user %>" >&2
    exit 1
fi