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

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

LOG=$(svnlook log -t "$TXN" "$REP")

if ! echo "$LOG" | grep -qvP '^\s*\b\S+\b\s*$'; then
    echo "one word commit message not allowed" >&2
    exit 1
fi